Entity name background is rendered behind transparent things.
Steps to Reproduce
Summon an entity with a custom name above an open area of water:
/summon minecraft:evoker ~ ~1 ~ {CustomName:"\"MC-202197\"",CustomNameVisible:1b,NoAI:1b}
→ ❌ Notice how the entity name background is rendered behind the water (a transparent object)
Expected behavior
The entity name background would be rendered in front of the transparent object, rather than behind it.
Linked issues
is duplicated by 3
relates to 2
Attachments
Comments 19
Can confirm this behavior in 21w40a. Here are some extra details regarding this problem.
The Bug:
Entity nametag backgrounds are rendered behind transparent things.
Steps to Reproduce:
Build the setup as shown in the attachment below.
Summon an evoker with a custom name, anywhere around the setup that you just built.
Look through the evoker's nametag into the direction of the transparent blocks.
Watch the entity nametag background closely as you do this, and take note as to whether it renders behind transparent things or not.
Observed Behavior:
Entity nametag backgrounds are rendered behind transparent things.
Expected Behavior:
Entity nametag backgrounds would not be rendered behind transparent things. Instead, they should be rendered in front of transparent things, in order to make them always visible when looking at them.
Can confirm this in 1.18 Pre-release 1. This can easily be seen when the "Text Background Opacity" slider is set to "100%" and the "Text Background" button is set to "Everywhere" in your accessibility settings.
[media]
copy of MC-162693