mojira.dev
MC-196531

Certain mobs despawn even when named

Certain mobs, mostly hostile despawn even when named. To reproduce, spawn any of these mobs, name them, then fly away. When you return, they will have despawned. The intended behavior is that they should still be present upon return.

Problem mobs:

bat
blaze
cave spider
creeper
dolphin
drowned
enderman
endermite
evoker
ghast
guardian
hoglin
husk
illusioner
magma cube
ocelot
phantom
piglin
piglin brute
pillager
ravager
silverfish
skeleton
slime
spider
squid
stray
vex
vindicator
witch
wither skeleton
zoglin
zombie
zombie villager
zombified piglin

*I tested almost every mob, but I skipped the bosses and entities like boats and minecarts

Attachments

Comments 6

Can't reproduce, are you using optifine? It has an entity disappearing bug now

@tryashtar I had optifine only on the 1.16.1 version. I did all my tests on a fresh install of 1.16.2 Pre-1.

I just tested it on a freshly downloaded 1.16.2 pre1 minecraft server, and observed the same effect. Named zombie, teleported away, teleported back, zombie gone.

Cant reproduce, please attach video

Okay, turns out the problem was that when you name a mob with a name tag, it sets PersistanceRequired to true. I missed that part. Using nametags actually seems to be fine. It's odd that the zombie kept disappearing in my iron golem farm, but that must have been an unrelated problem. Y'all can close this topic.

I am having the exact same problem with named zombie piglins in an over world gold farm. If I go more than around 30 blocks away it despawns. I am naming them after they are turned into zombies. 

Kailen James

(Unassigned)

Unconfirmed

(Unassigned)

mob

1.16.1, 1.16.2 Pre-release 1

Retrieved