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
Create a Superflat world.
Set the time to night.
/time set night
Summon an enderman holding a stone block.
/summon minecraft:enderman ~ ~ ~ {carriedBlockState:{Name:"minecraft:stone"}}
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
relates to 3
Comments 7
Confirmed for 1.13.1-pre1
Edit: It would be better to use /summon minecraft:enderman ~ ~ ~ {carriedBlockState:{Name:"minecraft:stone"}
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
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.