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 5

Can confirm in 21w15a.

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.

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

This example shows you most of the errors.

Call this command; it represents a simple screen containing several examples.
MC-306816

/summon text_display ~ ~1.25 ~ {Passengers:[{id:"minecraft:text_display",transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0.01f],scale:[1f,0.5f,1f]},text:" ",background:1677786897},{id:"minecraft:text_display",transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0.2f,0f,0.01f],scale:[1f,0.5f,1f]},text:" ",background:1678252287},{id:"minecraft:text_display",transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.2f,0f,0.01f],scale:[1f,0.5f,1f]},text:" ",background:1694433280},{id:"minecraft:text_display",transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.2f,0.5f,0f],scale:[16f,1f,1f]},text:" ",background:1694498815},{id:"minecraft:text_display",see_through:1b,Passengers:[{id:"minecraft:text_display",transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0.01f],scale:[1f,0.5f,1f]},text:" ",background:1677786897},{id:"minecraft:text_display",transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0.2f,0f,0.01f],scale:[1f,0.5f,1f]},text:" ",background:1678252287},{id:"minecraft:text_display",transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.2f,0f,0.01f],scale:[1f,0.5f,1f]},text:" ",background:1694433280},{id:"minecraft:text_display",transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.2f,0.5f,0f],scale:[16f,1f,1f]},text:" ",background:1694498815}],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[1.3f,-0.75f,0f],scale:[4f,6f,1f]},text:" ",background:-1778384896},{id:"minecraft:text_display",see_through:1b,Passengers:[{id:"minecraft:text_display",transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0.01f],scale:[1f,0.5f,1f]},text:" ",background:1677786897},{id:"minecraft:text_display",transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0.2f,0f,0.01f],scale:[1f,0.5f,1f]},text:" ",background:1678252287},{id:"minecraft:text_display",transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.2f,0f,0.01f],scale:[1f,0.5f,1f]},text:" ",background:1694433280},{id:"minecraft:text_display",transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.2f,0.5f,0f],scale:[16f,1f,1f]},text:" ",background:1694498815}],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-1.4f,-0.75f,0f],scale:[4f,6f,1f]},text:" ",background:-16777216},{id:"minecraft:text_display",transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0.55f,0f],scale:[0.6f,0.6f,1f]},text:{"color":"black","text":"When Entitys overlap"},background:0},{id:"minecraft:text_display",transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0.15f,0f],scale:[0.3f,0.3f,1f]},text:"Color values are not constant",background:0}],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.2f,-0.75f,0f],scale:[16f,6f,1f]},text:" ",background:-1778384896}

bugsbugsbugs

[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