I surrounded my village with two layers of cobblestone walls, and put torches everywhere so no hostile mobs can spawn. And I even have played on peaceful mode the whole time, and still, my villagers disappeared. I covered every hole, water, cave, and there was absolutely no way for the villagers to get out. I even made a copy of my world, went into creative, and teleported all the villager entities to me, and couldn't find the other ones. So, are they supposed to despawn?
Related issues
Comments


also happening to villagers in my server

Add many bed and you villager will not despawn because if the villager can sleep he dye.

This issue occurs for me as well, when the minecraft server is rebooted. All loaded villagers despawn.

It's clearly not from the lack of beds, and villagers don't die from sleep deprivation.

I have also had this issue, and would like to add tamed mules, and mine-carts (all types) to the list.
I have also the following observations:
The more entities you have the more often it occurs (ok this one might be obvious).
A disappearance is more likely to happen the more you leave and enter a chunk containing the entities.
errata- or one way to know its happening : When a villager with a profession disappears in this way I believe his work station becomes locked - no other villager will claim it like they will if he is killed or can't access it. You have to break the work station and place it again to get a new villager to claim it.
It may be the best way to observe this issue quickly is to use lots of mine carts because nothing in the game should destroy a unused mine cart sitting in an empty room. But it may happen more often with lots of different types of entitles in the same block, as that is the usual situation.

I had 4 villagers safely tucked inside my home base. Named and fully upgraded. Today there is one left. They disappeared one at a time over the past month. 😞 Very sad
Playing on win10 Bedrock Realm current vs 1.12

The same thing happened to me. Even villagers with whom I have already traded disappear and leave job blocks that no one wants. Not good, and just a problem of a completely broken village mechanics.

Afeta também a beta 1.13.0.4

So I just found out that if you keep them in a small area like a chunk, they no longer despawn. Maybe it is a chunk issue?

Funny thing is: the disappeared villagers also appear again (I had already acted with them and recognize them). others are missing for that now. Is crazy.

@Stefan I think whatever you do to decrease the amount of times/opportunity for the chunk they are in to load/unload decreases the chance they will despawn. One way to do that is keep them in a small area.

This happened to my village at least 3 times as well as 2 separate villages before . I discovered the first time it COULD HAVE been the zombies that got in because of some portions of my wall were not 2 blacks tall. BUT THEN and all but 2-3 villagers disappeared(because I could've sworn that I had a farmer but then they quickly disappeared to). I tried to quarantine the remaining villagers into one house but my 2 villagers decided to wonder before I could close off the house. Then I noticed that my librarian wasn't around. It was confirmed to have disappeared when I replaced his workstation and no particles appeared.
I put so much work to trying to protect and 'personalize' this village and it just doesn't seen possible with this bug.

This issue happened again. I used name tags on all my villagers but they still disappeared.

I have the similar problem! (Minecraft Java Edition 1.16.3)
this happened to villages in my world