mojira.dev
MC-202197

Entity name background is rendered behind transparent things

Entity name background is rendered behind transparent things.

Steps to Reproduce

  1. 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

Attachments

Comments 19

No. This is a different issue.

I can confirm for 20w46a.

Can confirm in 21w03a.

Can confirm in 21w06a.

9 more comments

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.

[media]
  • 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.

W_V

(Unassigned)

Confirmed

Rendering

rendering

1.16.3, 1.16.4 Pre-release 1, 1.16.4 Pre-release 2, 1.16.4, 20w45a, ..., 22w19a, 1.19.2, 1.20.1, 1.20.4, 1.21.3

Retrieved