mojira.dev
MC-134597

Inventory titles no longer support colors

Inventories no longer support colors in titles.

 

1.13:

[media]

1.12.2 and below:

[media]

Linked issues

Comments 4

To reproduce:

/give @p chest{display:{Name:"{\"text\":\"Test\",\"color\":\"red\"}"}}

Note that the item has a colored display name, but placing it and opening the inventory uses the default color.

Bit curious about the setup, since inventory names couldn't use text components in 1.12, while § works fine in both versions.

Anyway, we are missing support for text components in inventory names, so fixing that.

My guess is that the setup was originally done with a plugin, Spigot automatically translates § strings into text components in many cases (so probably also item names now, though I'm not 100% sure of that), which would trigger this scenario.

This was actually a duplicate, re-resolving correctly to the parent and marking that as fixed.

Arcaniax

boq

Confirmed

Minecraft 1.13

Retrieved