mojira.dev
MC-132199

Items with rarity values will not display their rarity colors / show as italic when renamed and put in an item frame

The Bug

When an item with a non-white rarity is highlighted over in the inventory or (thanks to MC-130145) selected in the hotbar, its name will display as colored. However, if the item is renamed and then inserted into an item frame, the text displayed will still be white, regardless of the rarity of the item.

The ominous banner's name displays normally, however.

Steps to Reproduce

  • Obtain an item frame and place it down.

  • Give yourself an item with a rarity color that has been renamed.

/give @s minecraft:enchanted_golden_apple{display:{Name:'{"text":"MC-132199"}'}}
  • Look at the color of the item's name within the item frame, and take note as to whether or not it's displayed in its rarity color.

Observed Behavior

Renamed items with rarity colors don't display their colors when inside of item frames.

Expected Behavior

Renamed items with rarity colors would display their colors when inside of item frames.

Linked issues

Attachments

Comments 20

Confusingly. this also affects 18w45a, despite the implemented illager banners correctly displaying name colour.

Is blocked by MC-154499 in 1.14.3-pre3

Can confirm in 20w49a.

Can confirm in 20w51a.

Can confirm in 21w05b.

10 more comments

Can confirm in 22w18a.

Can confirm in 1.19.

Note that the name also is not italic, while in the inventory, a renamed item is always in italic (unless you set italic to false in a command)

Can confirm in 1.19.2.

TomatoClownfish

Can confirm in 1.19.3.

muzikbike

(Unassigned)

Confirmed

Platform

Low

Items, Text

rarity-ignored

Minecraft 1.13-pre4, Minecraft 1.13-pre5, Minecraft 1.13-pre6, Minecraft 1.13-pre7, Minecraft 1.13-pre8, ..., 1.19.2, 1.19.3, 1.20.1, 1.20.4, 1.21

Retrieved