mojira.dev
MC-124543

JSON-Text formatting in CustomNames of container blocks does not work

I don't know if that may be intended due to technical limitations, but the json format tags do not appear to do anything when used in CustomNames of container blocks.

These commands do not give the desired format:

setblock ~ ~ ~ minecraft:chest{CustomName:"{\"text\":\"Hellou\",\"strikethrough\":true}"}
setblock ~ ~ ~ minecraft:chest{CustomName:"{\"text\":\"Hellou\",\"color\":\"red\"}"}

While these do:

summon minecraft:creeper ~ ~ ~ {CustomName:"{\"text\":\"Hellou\",\"strikethrough\":true}"}
summon minecraft:creeper ~ ~ ~ {CustomName:"{\"text\":\"Hellou\",\"color\":\"red\"}"}
give @p minecraft:stone{display:{Name:"{\"text\":\"Hellou\",\"strikethrough\":true}"}}
give @p minecraft:stone{display:{Name:"{\"text\":\"Hellou\",\"color\":\"red\"}"}}

Note that the legacy ยง formatting displays as expected

Linked issues

Attachments

Comments 1

NeunEinser

boq

Confirmed

CustomName, containers, text-component

Minecraft 18w03b, Minecraft 18w06a, Minecraft 18w08a, Minecraft 18w08b, Minecraft 18w10a, ..., Minecraft 1.13-pre3, Minecraft 1.13-pre6, Minecraft 1.13-pre7, Minecraft 1.13-pre9, Minecraft 1.13

Minecraft 18w30a

Retrieved