Colouring and renaming items with command blocks [duplicate]
I'm making an adventure map and I cant seem to colour the chest's name. I know you can do this:
give @a minecraft:chest 1 0 {display:{Name:"epic chest"}}
and this:
tellraw @a {"text":"cool text","color":"gold"}
So I was wondering if you could do something like
give @a minecraft:chest 1 0 {display:{name:"epic chest",color:"gold"}
but that doesn’t seem to work. I have seen this done so I know it is possible, but I don’t know how
Best Answer
Item display names do not support the JSON text component. The only features that currently use the text component are /tellraw, /title, book pages, and sign text.
You will otherwise need to use the legacy formatting codes via the section symbol (ยง). Be aware that this method is deprecated and will be removed in the future, replaced fully with the text component.
You can use a third-party NBT editor such as NBTExplorer to insert the section symbol.
Image example, editing the Command tag of a command block to include the section symbol:
Pictures about "Colouring and renaming items with command blocks [duplicate]"
![Colouring and renaming items with command blocks [duplicate] - Woman in Pink Coat Holding Shopping Bags Colouring and renaming items with command blocks [duplicate] - Woman in Pink Coat Holding Shopping Bags](/assets/images/colouring_and_renaming_items_with_command_blocks_duplicate_1.jpeg)
![Colouring and renaming items with command blocks [duplicate] - Pile of Assorted-color Hair Chalk Colouring and renaming items with command blocks [duplicate] - Pile of Assorted-color Hair Chalk](/assets/images/colouring_and_renaming_items_with_command_blocks_duplicate_2.jpeg)
![Colouring and renaming items with command blocks [duplicate] - Assorted-color Dice Toy on Wooden Table Colouring and renaming items with command blocks [duplicate] - Assorted-color Dice Toy on Wooden Table](/assets/images/colouring_and_renaming_items_with_command_blocks_duplicate_3.jpeg)
How do you use command blocks to duplicate?
"Repeat" command blocks are purple. They execute their commands once every one game tick (or more\u200c [BEonly]) as long as they are activated.3 Deadly Command Blocks (Minecraft PE)
More answers regarding colouring and renaming items with command blocks [duplicate]
Answer 2
Do:
/give (name) 1 Chest name:&6Epic_Chest lore:&6Something
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Sharon McCutcheon, Andrea Piacquadio, Sharon McCutcheon, Digital Buggu

