mojira.dev
MC-85527

Shulkers opening into blocks

15w49a update: Non-solid blocks such as pistons or slabs are still affected.


If a shulker is open you can't place a block above him. But if there is a block above him he can still open.

Linked issues

Attachments

Comments 28

Confirmed, though I'm not sure if it's intended or a bug.

Confirmed for 15w38a and 15w38b

18 more comments

Please link this in the description of the report. The following is based on a decompiled version of Minecraft 1.12 using MCP 940.

This is caused because in the method net.minecraft.entity.monster.EntityShulker.onUpdate() where it handles if theres a block above the shulker, only checks if the block is opaque and a full cube.

if (this.world.isBlockNormalCube(blockpos2, false)) 
{ 
this.tryTeleportToNewPosition(); 
}

This can be fixed by changing it to something like this;

if (!this.world.isAirBlock(blockpos2)) 
{ 
this.tryTeleportToNewPosition(); 
}

Probably not the best fix, but it does work. If a block above the shulker is something else than air, it will teleport the shulker.

Hope this helps 🙂.

This issue has been fixed in 20w06a.

[media]

[media]

[media]

[media]

Issue is still present as of 20w20b. If the shulker lacks a valid space to teleport to, it will still open into the block above it. Expected behavior would be that it would be unable to open.

[media]

@@unknown, please create a separate report for this and comment here once you did, so we can mark the reports as related.

Here is the separate report: MC-186172

Nudel Suppe

(Unassigned)

Confirmed

Collision, Mob behaviour

Minecraft 15w32c, Minecraft 15w38b, Minecraft 15w39b, Minecraft 15w39c, Minecraft 15w40a, , Minecraft 1.13.2, Minecraft 19w03c, Minecraft 19w04b, 1.15, 1.15.2

Minecraft 15w49a, 20w06a

Retrieved