Want your items to stand out?
Learn how to give any Minecraft item a custom colored name using simple commands. Perfect for making special item names glow in red or giving tools a unique look.
The Code
/give @p minecraft:diamond_sword[minecraft:custom_name=[{text:"Sword of Fire", color:"#FF0000"}]]
How does it work?
- /give @p -> Gives the item to the nearest player.
- minecraft:diamond_sword -> The item type that's being given.
- [minecraft:custom_name={...}] -> The NBT data that will customize how the item will look.
- "text":"Sword of Fire" -> The item name.
- "color":"#FF0000" -> The color of the name (red).