Villagers despawn just as mobs do when you get far enough from them.
Related issues
is duplicated by
Comments
Are you sure they're not just getting eaten by zombies?
My villagers are despawning too even though I am near them. I think they're despawning when their chunks get loaded and unloaded. They're encased in cells in an Iron golem tower so as to not get infected. This is causing major problems in my farm.
Well if you walk far enough away, they do vanish, but don't despawn, like they just go out of your vision. This happens with any mob
I can confirm that a village lost all its villagers rapidly, and that it seems like they are despawning due to distance from the player.
What I expected to happen was...:
A village stays populated with villagers even if you travel far, eg to an other village.
What actually happened was...:
A village that had kept all its villagers for many day-night cycles, lost all its villagers in one day-night cycle.
This happened when I travelled past my render distance.
I cannot attribute this to a zombie infection because zombies would not spawn that far from the player.
There's also the fact that zombie infections should take some time and leave traces: infected villagers, rotten flesh.
I don't know why the disappear, but my walled-in golem-guarded village looses villagers from time to time. Most of them are still there when i leave and come back, but sometimes i come back and one is gone. I wonder if they are getting stuck in a wall and suffocating or something.
I too am having this problem. I am in peaceful mode so there is no chance that zombies are killing my villagers, each villager is in their own house, the house is locked with fences and fence gates. I have not gone particularly far away and the most recent loss (of two librarians) I had not left the area since they last bred. I have not as of yet noticed a pattern but the only thing I have noticed is as of yet no villager that I have traded with has vanished.
This was not a problem until very recently, in 1.4.5
This happened to me after updating Minecraft from 1.4.5 to 1.4.6.
Yep, this is still happening in 13w03a. You guys who commented and are still having this problem need to vote on it so it gets seen.
I had this problem too. I was out fetching supplies and I came back and my village was empty. No trace of villagers or zombies or anything. I'm playing version 1.4.7
Just wanted to add that I'm having problems with villagers vanishing too. It just so happened one of the children was turned to a zombie just prior to vanishing. I kept hearing his moan, so I searched around and found him underground. I found several others that were randomly strewn about underground too, with no obvious ways for them to have gotten there.
Not all villagers were accounted for, though, so I'm wondering if they are clipping through blocks, falling to the closest cavern and getting killed by monsters.
Peffse~ This is very very possibly what the problem was for me... because more than once I've had all my villagers end up on the bottom floor of their "appartment" building after having put them up in the upper levels... And I know full well there is a cave below... but it's a long way down.
I can support this theory as my villagers were in holding cells above sea level. They may have clipped through to under the tower's base and drowned, but that was updates ago and I can no longer access That place because it was on an old server map.
I recently turned a zombie villager into a zombie. I had only 1 villager, and right away the villager was behaving strangely. Villagers tend to move around a lot but this villager hardly walked around. It also didn't seem to want to interact with doors. It honestly seemed like it was operating on pig AI.
The area I kept him was safe from monsters and enclosed. No where the wander, nothing to kill him, but I came to check on him a couple minutes later and he was gone. The door I left him next to was intact, no evidence of a zombie attack. It was as if he despawned.
I'm using 1.5.1
It happened to me while I was trading with the villager. When I closed the trading screen the villager had disappeared.
My wife and I just had almost a whole "larger" village despawn on us. 1.5.1 Server. SMP
Unless someone has really seen them despawning, I don't think that is precisely the case:
I have been taking close care of a village for two or three months now. First i trapped all villagers by making many 1-deep holes in the ground, placing each in one, and placing a dirt block above their heads so they wouldn't jump out. They couldn't move so they only turned around. No villagers disappeared while they were like this.
After some time, I freed some for mating, then made some ‘houses’ and trapped three villagers inside of each. The insides were 5x5x5, well lit and free of danger. After travelling several times I realized some of these had ‘disappeared’. Zombie spawning was not a possibility because, had a Zombie spawned in a room, it would have killed all three villagers, but usually only one or two disappeared. However, the ones in the other traps (the holes in the ground where they couldn't move) were still there.
Since they were free to move around, I think my villagers were crowding in the same space (next to a wall), then when the game loaded, they were relocated to occupied blocks, where they died of suffocation. I've seen it happen with animals.
I'm playing 1.5.2 with Optifine 1.5.2 HD_U_D2 (I saw animals dying of suffocation this way before modding Minecraft, though), SSP.
Please fix this issue, I don't want to have all my villagers stuck in holes so they don't disappear. Thank you.
I think I have this bug.
My server has a survival superflat world, and there were 10-11 villagers. A player has trapped 4 in holes.
After some exploration, all the villagers were gone, except the trapped villagers. They don't suffocate and they don't died, because I configurated essentials to make the villagers invincible. I don't think that they runned away from zombies, because we sleep when it's the night, so zombies haven't the time for spawning.
It's normal villagers, not cured villagers.
In the same server, in the normal world, there is a village near spawn ; suddenly, all the villagers have disappear. I found some at 50-100 blocs of the village, but I didn't find the others villagers. However, I think that they went away from the village because some players have removed the doors. But in the superflat world, there were doors.
I hope this issue will be fixed, because we'll do 2 huge villager farm :/

On a bukket server I was playing on, I have encountered chickens making suffocation noises and dying. Same problem, I think, except chickens have drops.
Create a small room, fill it with chickens, and you should see this.
I don't know if this changes things but when I had this problem it came from a zombie villager that originally spawned from a spawner in a dungeon. Basically I ventured far and wide for a village with no luck, so I went searching for zombie villagers to cure. I finally found one from a zombie spawner, led him all the way back up to my base on the surface, and trapped him in a small walled off area that he could not escape from and cured him (I stayed for the 3 minutes until he became a villager.) Then I left to go build an underground railroad from my newly built village spawner to my base, and it was quite far away so I may have left the chunk. When I finished the railroad and came back for the villager, he had despawned.
Is this still a concern in the current Minecraft version 1.6.2 / Launcher version 1.2.1 ? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

This is a random occourence, but I am pretty sure it still happens. I havetn seen it, but I don't have any vilagers. Anyone getting it?
As it stands, we're unable to reproduce this issue of villagers despawning. I've also looked into the code and am unable to see any problems with it.
If this is still an issue, please let the mods know so they can re-open it and we'll reinvestigate when we can.
If, however, the issue is that villagers are still disappearing due to reasons that are NOT related to despawning, please create a new ticket to track that specific issue.
Villagers glitched out on my world, but they didn't despawn
Happened to me four or five times in a survival world, 1.6.2. Kept spawning new ones, but they keep on vanishing. Gave up after a while.
Frankly, I'm not surprised it can't be reproduced. It seems very random and spontaneous. I went for about a week before it started up, and even then it was sporadic.
Edit: not absolutely sure it is caused by despawning; however, I have never observed the disappearance so it might very well be.
Edit edit: I agree with the poster below. This is a long-standing issue which can ruin the fun of a well-built village. It has been reported over several versions by numerous players, and it needs a bit more attention. (I'm not saying it should be easy to fix or anything, (I checked the MCP decompiled code and can't figure out what it could possibly be) just that it is still an issue.)
Can't get the villagers to stay anymore either. They despawn. I had spawned villagers in my town, even had two iron golems and the villagers even increased on their own after a while. Now they're all gone, even if I add new ones they disappear. 😞
No modded server, just standard 1.6.2.
Again, this is in SMP, not single player.
Maybe consider reopen this?
This issue seems to be around still.
I cured a zombie villager, kept him in a little dirt hut until I could get two and complete their village (building it from scratch) he was fine for a few nights, then I cured another one, went to check on the first, and he had despawned. The little hut was completely empty, there were no areas for anything to get in and no room for anything to spawn with him.
I then cured a third villager, the second still in his hut, left them together with ample lighting, they were fine. I moved them to a building and kept a dirt block in front of the door so they wouldn't leave. A few nights later and one of them has disappeared for no reason 😞 I'm almost positive the third is going to disappear on me as well. They're sticking around for a few nights and then completely vanishing even when inside of a secure building with each other.
(I'm on single player survival though, not multiplayer)
I think what is going on is that the progression between zombie to villager is not completely done right. where as by they act look and sound like an npc but still have some command code from the time they where an zombie which still lingers. which would explain why they disappear and dont reproduce because that is what the zombie villager would do. thankfully my npc has not diaper (yet), has been graded by walls and golem and on normal survival and yet it still wont reproduce. even with doors a plenty.
It is also must mention that this has never happen to me during the last time i played minecraft which was 6 months ago (give or take). only in this patch has this ever happen
I put villagers in holding cells inside the village itself so they wouldn't wander around for trading purposes, this is the second time, all of them have disappeared. first time i thought they were too far outside the village boundaries, so i destroyed those holding cells and put them all inside the village boundaries. I went to the end, got killed. and when i got back to the village, all the holding cells were empty again. it took me awhile to get all those villagers in those cells, and have them as suitable trading partners, now they are gone. this needs to be fixed.
I've tested things some more, villagers in small holding cells with iron doors works for me, just make sure its bright enough so mobs don't spawn there. But it's more or less impossible to keep a normal village running tho'., villagers die more quckly now since zombies seem more agressive and sometimes villagers don't stay inside but keep running around.
@mohd I thought so too, but I checked the source code and the zombie is not cured, it is killed and replaced with a new entity. The information transferred is only the position and rotation. Also, this occurs with natural villages too, not just cured ones.
Also, do bug reports get rechecked periodically after being closed?

@@unknown:
Also, do bug reports get rechecked periodically after being closed?
No, but all people who post on it receive notifications when someone comments, so comments can be seen. If we find some way to reproduce, then it will get updated.
What would be useful in trying to reproduce is a mod that logs any time a entity takes damage, and the cause of said damage.
This has clearly has not been resolved but it seems skins are more important then npc _
I see it isn't reproducable, but it would be good if we could re-open this issue here.
Apparently it happens to many people, still, in 1.8 Release-Version.
If it isn't happening due to mobs sinking into the ground (https://bugs.mojang.com/browse/MC-72868 fixed by today), then we just have not found out yet what causes it.
I know a few people are trying to reproduce it or to find the problem inside the code as this is a really bothersome bug.
So, if possible, please re-open this issue, so we have a thread collecting the infor we could need to track down the issue.
Kinds regards,
Meri
I don't think they despawn any more, I think they get killed or sometimes fall through blocks and suffrocates.
I've had villagers locked up in a prison for a very long time now and they're all alive.
I've heard not only from Docm and Etho that they lost Villagers, but it's unsure as of why/how.
It could be lightning hitting them, turning them into witches and then despawn..
Or glitching into blocks, then suffocate/die..
Or some Zombie or Creeper attack, who knows.
But we don't really know yet.
Well I guess I'll just watch this issue here, and in case we have this issue again, I'll apply for having this issue re-opened again };]
Regards
I saw one of Ethos villagers suffocate and die, for some reason it was stuck in the floor when he came to his villager village in his cave.
@Rickard: Might have been due to https://bugs.mojang.com/browse/MC-72868 which is fixed now..
Let's just wait and see if Villagers disappear again, to try to nail down the issue, in case it still persists.
}=)
Mojang really should make it so that villagers struck by lightning are turned into PERSISTENT witches.
Indeed, same with Villagers turned into Zombies..
Funny, I was just recently talking with a MC buddy about exactly that, that it'd be cool if they'd persist, not only renamed mobs or those that hold something they picked up };]
Creepers struck by lightning and turned into charged creepers persisting would also be cool.. but, oh well, this is not Reddit where we should discuss features we'd like to be added, and I don't want the mods reminding us of that };] - But, again, I do agree regarding the persistence, although I can also see normal mobs turned into a hostile mob which can despawn as being a legit part of the game, just like Endermen stealing non-renewable blocks...

Certainly this must still be an issue.
In my world (server), each of the players left and returned to the chunks containing the villagers (two were cured, one was birthed). It took some time to notice, but they were not there (they were not killed by players). There isn't a single block of light level 7 or below, as well as on the wall towering over the little villager section. All three villagers were not there and there weren't any drops (I gave them a loot table, but with the amount of time that passed, the drops would have likely despawned).
I say confirmed for 1.12.1
@unknown Have the 3 villagers been sufficiently protected from potential lightning struck, as it may have turned them into witches (which would despawn without any loot either). Iirc it were 7 blocks reach of a lightning to be able to turn villagers into witches (basically if you got a roof over where the villagers were, it would have to be extended 7 out to all sites).

Meri Diana Great consideration. Though, there wasn't a thunder storm during the time between their presence and disappearance 😞
Nikos, you're 100% sure there was no thunderstorm? Also, there seems to be still the problem that sometimes mobs can suffocate due to glitching into walls and sometimes they also glitch through fences and similar.. So theoretically they could have either suffocated or escaped and then either died by falling into lava, a hole, or attacked by Zombies during night or so.
But it'd be a bit of a bigger coincidence if it would have been all 3 at the same time, but then again I don't know your setup there and other surrounding stuff (space they were in + environment & Co.), so it could be so many things, even entity cramming, if they happened to be together with many other mobs.
But we should definitely keep an eye on this bug 🙂
It'd be great though if it were somehow reliably reproducable and such things as I mentioned could be 100% safely excluded, to be sure that this bug really occurs.
Take care, have a nice weekend 🙂

I've had an entire village despawn it's villagers in 1.12.2...
Villagers do not despawn at all. No matter how far away you go.
Can you explain why you think this is the case?