mojira.dev
MC-222559

Block hitboxes and entity hitboxes don’t render behind semi-transparent entities

Selected block and entity hitboxes are not rendered behind semi-transparent entites, such as the player in spectator mode, or when on a team with invisibility applied.

Steps to Reproduce:

(Fabulous! graphics must be enabled)

  1. Add a team and join it

    /team add hitbox_invisible
    /team join hitbox_invisible@s
  2. Apply invisibility OR enter spectator mode

    /effect give @s minecraft:invisibility infinite 0 true
  3. Enter the third-person perspective

  4. Look directly at a block, or an entity with hitboxes enabled (F3 + B)
    → ❌ The hitbox is not rendered properly

Screenshots / Videos:

Selected block hitbox:

[media]

Entity hitbox:

[media]

Notes:

  1. This occurs even when the 'Fabulous!' setting is enabled

  2. When 'Fabulous!' graphics is disabled, the entity will not render at all, that behavior is tracked in MC-187783

Linked issues

Attachments

Comments

Avoma

Can confirm.

Avoma

Can confirm in 21w15a.

muzikbike

Testing in 1.18.2-rc1 indicates that this also arises for translucent blocks in minecarts (MC-248849) and held by endermen (MC-248850), so consider this a confirmation for this version as well.

[Mod] Jingy

Can confirm in 24w09a. Requesting ownership of this issue.
Related to MC-162693 MC-202197 MC-259812 MC-223559

[Mod] Jingy

(Unassigned)

Confirmed

Rendering

hitbox, spectator, transparency

1.16.5, 21w14a, 21w15a, 21w16a, 21w17a, ..., 23w43b, 1.20.3 Pre-Release 2, 1.20.4, 24w09a, 1.20.5

Retrieved