mojira.dev
MC-147011

Shulkers will teleport to glass and leaves

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:

  1. Create a flat world using "The Void" preset

  2. Stand on the cobblestone in the center

  3. Run the command:
    (easily creates a single block in a void world)

    /fill ~16 ~-1 ~16 ~-16 ~-1 ~-16 air replace stone
  4. Spawn a shulker on the cobblestone

  5. Place a glass or leaf block near the cobblestone

  6. 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

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.

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.

Can confirm in 20w51a.

Can confirm in 21w05b.

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.

Can confirm in 1.20.2, and 23w43b.

dojofemy

(Unassigned)

Confirmed

Mob behaviour

glass, leaf, shulker

Minecraft 19w13b, Minecraft 1.14.1, 20w51a, 1.20.2, 23w43b, 1.21

Retrieved