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
is duplicated by 1
relates to 2
Attachments
Comments 28
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 🙂.
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
Confirmed, though I'm not sure if it's intended or a bug.