mojira.dev
MC-153904

Villagers sometimes disappear without any trace

Moderator Note

Since 1.15, villager deaths are logged in the server console (see MC-165985). Please check these logs before confirming this issue for new versions.

If you're experience this on Realms, make sure that in the "World options" screen, "Spawn NPCs" is enabled.

Mod Violine1101 mentioned in ticket MC-150170 to make a new ticket for this, so here it is. Entire villages worth of villagers are disappearing on a fresh server hosted on my PC, absolutely 0 mods, and no spigot/paper stuff since I'm new to this. The only message I'm seeing of relevance in the server log is "[Server thread/WARN]: Fetching addPacket for removed entity." It occurs at about the right time according to the affected players. Nothing else has yet been reported missing, but it's a small server that we started yesterday. I attached the latest.log where you can see the message first pop up at around 11:17, which matches the player saying that the villagers he lives with have been gone all day. Let me know if I can add anything else to assist.

 

EDIT: The error message in question coincides with a night successfully being skipped by sleeping, according to the affected players. This seem possibly relevant.

EDIT2: While the above was true, other villager disappearances have occurred without sleep it seems.

 

EDIT3: As requested, world file: https://www.dropbox.com/s/z3f10h2ps9fen74/world.zip?dl=0

Linked issues

MC-147474 Villagers disappearing Resolved MC-147494 Villagers disappeared on server update Resolved MC-148362 Villager Problems. Resolved MC-148699 My villagers are disappearing Resolved MC-152766 Vilalgers Disappearing (NOT a chunk border issue) Resolved

Attachments

Comments 230

My villagers, iron golems, farm animals, tamed dogs, horses, and item frames all disappear. I originally thought they disappeared because of unloaded chunks so I named them-but they disappeared too. I connected some dots and found that they only disappeared after a restart.

Same issue on my 1.14.2 Paper server that averages 1-4 players. Villagers randomly despawn/disappear all the time, though I'm not entirely sure when and what the cause is yet.

Rather not say

Thank god someone else has this. I had a village full of villagers, and one by one they disappeared until there were only two who would not breed. One was master level, I always was near the village, and went to the nether a couple of times, and no more villagers.

[Mod] violine1101

Are only villagers affected or other entities as well?

Rather not say

The sheep that have generated in the village barn have not disappeared for me.

220 more comments

A couple of players have been able to reproduce this on 1.19 on my server, and I wasn't able to find villager death messages in my logs.

Can confirm in 23w05a

@unknown This bug has no known reproduction steps. Would you mind sharing how exactly did you confirm this?

It seems this issue has not been tracked much in 1.20 but is still open and its duplicates resolved. And it does not affect the patch 23w35a and the 1.20.2 per-release 1. (to my knowledge) Is the issue suppost to still be open?

If anyone is still having this issue could you please name your villagers and periodically check your logs? After barricading all but 3 of my villagers inside their houses and then naming the 3 still left free to roam around, I discovered how my villagers were disappearing. My villagers were not dispawning. My sad discovery is detailed in MC-265023.

Djinnistorm

boq

Confirmed

Platform

Important

Entities

mojang_internal_2, villager

Minecraft 1.14.2, Minecraft 1.14.3 Pre-Release 2, Minecraft 1.14.3, Minecraft 1.14.4 Pre-Release 2, Minecraft 1.14.4 Pre-Release 5, ..., 1.19.4, 1.20.2, 1.20.5, 24w40a, 1.21.3

Retrieved