Mod Notice
Name
, CustomName
, Lore
, and team/objective display names use JSON text components now, just like /tellraw
and /title
. The format changed a bit, but you can use colors, formatting, and translations now.
1.12
/summon cow ~ ~ ~ {CustomName:"example"}
/team add example Example
1.13+
/summon cow ~ ~ ~ {CustomName:"{\"text\":\"example\"}"}
/team add example "Example"
Linked issues
is duplicated by 60
Comments 7
Next time, just read the blog post 🙂
https://minecraft.net/article/minecraft-snapshot-18w01a
Technical: Changed all custom names (blocks, items, entities, block entities) to translatable text components
Giving item with lore still works the same though. Like this: /give @a minecraft:stick{display:{Lore:["a powerful stick"]}} 1. That doesn't require JSON format. So I was just wondering if this is a bug or not?
They are currently not json strings, see MC-123772.
Names are JSON components now; use
CustomName:"\"test\""