Description: When a named Villager (with a Name Tag) is converted into a Zombie, it loses its PersistenceRequired value, causing it to despawn if the player is far enough.
Steps to reproduce: For ease, you can reproduce it in Creative, but it happens in Survival too.
Spawn a Villager
Give it a name using a Name Tag
Use /data get entity <entity id> PersistenceRequired (to confirm that it switched to 1b)
Get it converted by zombies
Use /data get entity <entity id> PersistenceRequired again (the data tag is now 0b)
/tp <Player> ~ ~150 ~
/tp <Player> ~ ~-150 ~
The Villager has despawned.
Thank you for your report!
We're actually already tracking this issue in MC-88967, so I resolved and linked this ticket as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature in the future to see if the issue has already been reported.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki