mojira.dev
MC-124812

Endermen holding a block can despawn

The bug

Endermen which picked up a block can despawn.

Expected behavior

When endermen pick up a block their PersistenceRequired tag should be set to 1b.

Either the tag should then not be cleared anymore, or better there has to be a tag indicating that PersistenceRequired was set by the player and therefore should not be cleared once the enderman places the block again.

How to reproduce

  1. Create a Superflat world.

  2. Set the time to night.

    /time set night
  3. Summon an enderman holding a stone block.

    /summon minecraft:enderman ~ ~ ~ {carriedBlockState:{Name:"minecraft:stone"}}
  4. Teleport away and then back to make sure they could despawn

    /teleport @s ~ ~ ~1000
    /teleport @s ~ ~ ~-1000

    → ❌ The endermen holding blocks despawned as well

Linked issues

Comments 7

With the exception of TNT, are any of the items an enderman can pick up really that valuable? Once the player has access to those blocks they can be collected in abundance, meaning that losing a single one of those blocks to an enderman isn't anything game breaking. At the very least they shouldn't despawn when holding TNT.

Confirmed for 1.13.1-pre1

Edit: It would be better to use /summon minecraft:enderman ~ ~ ~ {carriedBlockState:{Name:"minecraft:stone"}

Confirmed for 1.13.1

Affects 1.15.1, can I request ownership of this issue?

@@unknown, sure you are now the reporter. Thanks!

Should be fixed. It can actually help in a search for endermen, I just wish they wouldn't teleport in caves and get stuck there forever

So now we have endermen slowly filling up our servers just so we don't lose our precious dirt blocks or flowers? Seems like a bad idea.

Marcono1234

muzikbike

coschevi

Confirmed

(Unassigned)

despawning, enderman

Minecraft 1.12.2, Minecraft 18w05a, Minecraft 1.13, Minecraft 1.13.1-pre1, Minecraft 1.13.1, ..., 20w08a, 20w09a, 20w10a, 20w11a, 20w12a

20w22a

Retrieved