mojira.dev
MC-94186

BlockDragonEgg does not extend BlockFalling

The bug

The class /Client/src/net/minecraft/block/BlockDragonEgg.java (MCP 1.8 name) does not extend the class /Client/src/net/minecraft/block/BlockFalling.java. However similar code from the BlockFalling class was used but the block placing for lazy chunks is incorrect. Currently it starts at the same position to test (for BlockFalling it starts one block below) and once it found a block beneath it, it places itself at that position (instead of one block above).

How to reproduce

  1. Use the following command, replace [x] with: renderDistance * 16 (For example your render distance is 8: 8 * 16 = 128)

    /setblock ~[x] ~1 ~ dragon_egg
  2. Go to where the dragon egg was placed
    It is one block in the ground instead of above the ground

Linked issues

Comments 5

Don't you mean max() instead of min()?

No I meant "minimum" because I thought there was one report about the radius of loaded chunks being always 8, but it seems like I remembered this wrong. I will change the description

Yes, then it will always be at least 8, but higher if you have a higher render distance. max() would have been the appropriate choice.

Oh yes, sorry you are right 🙂

Is this still an issue in the latest snapshot 16w44a? If so please update the affected versions.

This is an automated comment on any open or reopened issue with out-of-date affected versions.

marcono1234

(Unassigned)

Confirmed

chunk, dragon_egg, extend, falling_block

Minecraft 15w50a, Minecraft 16w36a, Minecraft 1.11

Minecraft 17w47a

Retrieved