mojira.dev
MC-114286

Falling block does not render if same block state is at the block position

The bug

Falling blocks are not rendered if the block state they are displaying is at the block position of the entity. The shadow of the falling block is still rendered.

Expected behavior

The expected behavior is that falling block entities are always rendered. Otherwise the player might be confused why he sees a shadow but no entity or why he cannot click / hit at a position because he cannot see the falling block entity blocking his view.

Even with regular falling blocks which begin to fall changing it to have the entity always be rendered does not make a visible difference.

How to reproduce

  1. Place a block, for example a trapdoor

    /setblock ~2 ~ ~ oak_trapdoor
  2. Summon a falling block entity displaying the block

    /summon falling_block ~2 ~0.9 ~ {NoGravity:1b,Time:-2147483648,BlockState:{Name:"oak_trapdoor"}}

    Note: The block will probably get invisible because of MC-72248. Right clicking the trapdoor block should solve this.
    → You should see that the falling block entity is not rendered unless you break the trapdoor or change its state, for example by right clicking it

Code analysis

Based on 1.11.2 decompiled using MCP 9.35 rc1

The method net.minecraft.client.renderer.entity.RenderFallingBlock.doRender(EntityFallingBlock, double, double, double, float, float) does not render the falling block entity if the block state it is displaying is at the block position of the entity.

Linked issues

Attachments

Comments 10

Can confirm for MC 1.12.1.

Confirmed for 1.13.1.

Can confirm for 19w39a.

Can confirm in 20w51a.

Can confirm in 21w06a.

Can confirm in 1.16.5 and 21w08b.

Can confirm in 1.17.

Can confirm in 1.17.1.

Can confirm in 1.19.2 and 22w42a.

Can confirm in 1.19.3, 1.19.4 and 1.20-RC1

marcono1234

(Unassigned)

Confirmed

Rendering

block, blockstate, entity, falling_block, rendering

Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 17w45b, ..., 1.19.4, 1.20 Release Candidate 1, 1.20, 1.20.1, 1.21.5

Retrieved