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.

Related issues

Attachments

Comments

migrated
[media][media][media][media][media][media][media]
Hound4oo4

copy of MC-162693

migrated

No. This is a different issue.

Avoma

I can confirm for 20w46a.

Avoma

Can confirm in 21w03a.

Avoma

Can confirm in 21w06a.

Avoma

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.

migrated

Thank you, I will copy & paste this to the report.

Avoma

No problem. 😃 Can confirm in 21w08b. Video attached.

migrated

I can only reproduce this with chests, but not with water or clouds and this even happens on fabolous.

Avoma

Can confirm in 21w13a.

Avoma

Can confirm in 21w14a.

Avoma

Can confirm in 21w17a.

Avoma

Can confirm in 1.17.

ampolive

Can confirm in 1.17.1.

Avoma

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.

Avoma

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]
Avoma

Can confirm in 1.18.

Avoma

Can confirm in 1.18.2 and 22w19a.

Avoma

Can confirm in 1.19.2.

migrated

(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