The bug
Shulkers will teleport to glass and leaves now (19w13b) - I also tested it in (19w13a) were they didn't do it.
Steps to Reproduce:
Create a flat world using "The Void" preset
Stand on the cobblestone in the center
Run the command:
(easily creates a single block in a void world)
/fill ~16 ~-1 ~16 ~-16 ~-1 ~-16 air replace stone
Spawn a shulker on the cobblestone
Place a glass or leaf block near the cobblestone
Break the cobblestone
Expected Result:
The shulker would not teleport to the glass or leaf block.
Observed Behavior:
The shulker teleports to the glass and/or leaf block.
Notes:
Related to MC-83695, and could be Working as Intended based off of its resolution.
Attachments
Comments 7
Affects 1.16.2, it appears that the game does not check the target block to teleport to is a solid block in the deobfuscated code. (net.minecraft.world.entity.monster.Shulker.teleportSomewhere())
Can Confirm for Version 1.16.1. The Gold Blocks teleport the shulkers outside the water whilst the redstone blocks teleport to the inside of the glass. The diamond blocks are the shulkers not teleporting anywhere, in which drowns.
I would argue that based off the resolution of MC-83695 this is working as intended. Considering now too that blocks such as levers, torches, and more are attachable to glass, shulkers being able to teleport to blocks similar to it seems very reasonable.
This seems to still be happening in 1.14.1 release. This makes shulker farms unusable. I doubt this was an intentional change, as I can't find any information about it anywhere.