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.
Related issues
is duplicated by
relates to
Attachments
Comments


copy of MC-162693

No. This is a different issue.
I can confirm for 20w46a.
Can confirm in 21w03a.
Can confirm in 21w06a.
Can confirm in 21w07a. Here are some steps to reproduce this issue:
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 transparent objects.

Thank you, I will copy & paste this to the report.
No problem. 😃 Can confirm in 21w08b. Video attached.

I can only reproduce this with chests, but not with water or clouds and this even happens on fabolous.
Can confirm in 21w13a.
Can confirm in 21w14a.
Can confirm in 21w17a.
Can confirm in 1.17.

Can confirm in 1.17.1.
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]Can confirm in 1.18.
Can confirm in 1.18.2 and 22w19a.
Can confirm in 1.19.2.