The bug
The names of the contained items should be white, yellow, cyan and magenta respectively, however they all display as the same colour.
The ominous banner's name displays normally, however.
Steps to Reproduce
Give yourself a shulker box that contains multiple items with different item rarity colors.
/give @s minecraft:shulker_box{BlockEntityTag:{Items:[{Slot:0,id:"minecraft:enchanted_golden_apple",Count:1b},{Slot:1,id:"minecraft:elytra",Count:1b},{Slot:2,id:"minecraft:beacon",Count:1b}]}}
Hold your mouse cursor over the shulker box in your inventory to display its tooltip.
Take note as to whether or not shulker box tooltips display item rarity colors.
Observed Behavior
Shulker box tooltips do not display item rarity colors.
Expected Behavior
Shulker box tooltips would display item rarity colors.
Linked issues
Attachments
Comments


Still present in 20w16a
Can confirm in 20w51a.
Can confirm in 21w05b.
Can confirm in 21w06a.
Can confirm in 21w08b.
Can confirm in 1.16.5 and 21w08b.
Can confirm in 21w10a. Video attached.
Can confirm in 1.17.
Can confirm in 1.17.1.
I am able to confirm this behavior in 21w40a. Here are some extra details regarding this problem.
The Bug:
Shulker box tooltips do not display item rarity colors.
Steps to Reproduce:
Give yourself a shulker box that contains multiple items with different item rarity colors.
/give @s minecraft:shulker_box{BlockEntityTag:{Items:[{Slot:0,id:"minecraft:enchanted_golden_apple",Count:1b},{Slot:1,id:"minecraft:elytra",Count:1b},{Slot:2,id:"minecraft:beacon",Count:1b}]}}
Hold your mouse cursor over the shulker box in your inventory to display its tooltip.
Take note as to whether or not shulker box tooltips display item rarity colors.
Observed Behavior:
Shulker box tooltips do not display item rarity colors.
Expected Behavior:
Shulker box tooltips would display item rarity colors.
Can confirm in 1.18.1.
Can confirm in 1.18.2.

Present in 1.19-pre2.

Present in 1.19-pre3.

Present in 1.19-pre4.

Present in 1.19-pre5.

Present in 1.19-rc1.

Present in 1.19-rc2.

Present in 22w24a.
Can confirm in 1.19.1.

Present in 1.19.2.
Can confirm in 1.19.3.

Can confirm in 23w04a

Present in 1.19.4.

This issue still exists in Minecraft snapshot 24w12a. A new command to reproduce the issue is: /give @s shulker_box[container=[{item:{id:dirt,components:{rarity:epic}},slot:0}],rarity=epic]
Can confirm for 1.13-pre5