mojira.dev
MC-158745

Villagers pathfinding not working in multi level buildings and not sleeping

Villagers ignore some beds (THEY DONT HAVE A BLOCK OVER THE HEAD, AS THAT WILL CAUSE VILLAGERS TO IGNORE A BED) on some floors and dont ignore them on the ground level or2nd level or top level. TONS of villagers crowd the top level. levels are made of slabs, beds are on slabs, there is space of 2 blocks above beds, carpet used to be on the floor, but it was removed, didnt help. I've just gone back now after teleporting villagers in boats from the top to the ground (you teleport the boats with the villagers in them so you dont teleport all the villagers down and cause entity cramming), set it to night, and actually, villagers only sleep on the ground level, the top level(which for some reason all of the villagers head up there once it turns night even though all those beds are being slept in). I have tried making it that each layer has a block leading up to the level, as well as solid blocks under/in front of the beds, and none of it worked. If the villagers aren't in the top level, they are hanging out in some other level, not sleeping. If there ARE any villagers in the level, they usually just hang out. Since the video file was too big, watch this (https://www.youtube.com/watch?v=2yWQX1_499M&feature=youtu.be). As you can see in the video, the villagers eventually just go to the top and crowd there. Pretty much no villagers sleep in floors other then the top and ground level, and the ones that do either leave the bed once i come next to them, or, if they are a baby villager (weird, only the baby villagers will sleep in anything other then the top floor). I dont know exactly what would cause this, a pathfinding glitch, some sort of villagers recognizing beds glitch, but considering that all the villagers went to the top, and babies could sleep in the beds, i believe that it is a bit of both.

Linked issues

Attachments

Comments 8

I am having the same issue, and villagers seem to "forget" or lose meeting points as well. Not sure what's going on with that.

How far away are the beds from the villagers? I think from your video it looks like only the villagers that work inside of the building claim the beds on top, because for them they're not too far away. The beds in the bottom floor might just be near enough for the villagers outside, but the floors above might already be too far away for the villagers outside.

The villagers are right next to the beds, that’s for sure. As you can see in the video, the villagers, once they see the stairs, just go up and up and up until they reach the top and either sleep in the bed or dance on top of it. The one thing that told me something is definitely wrong here is that the baby villagers WOULD sleep in those beds, but the adults wouldn’t.

Please check if this is still an issue for you in 1.16 Release Candidate 1 or later.

Yes, this issue persists in 1.16, but not how it was before. It used to be that beds were skipped and most villagers crowded to the top, however, now almost every bed is full, besides the occasional straggler, and villagers only gather at the top like before when all beds are full. Also, beds seem to be prioritized to baby villagers, and sometimes villagers ignore the beds. A large amount of villagers tend to get stuck in the middle level, where the tower gets thinner, though I believe that it is my fault that happens as the stairs there are probably not very great. I recorded myself testing it again, after a bit I made villagers glow and teleported them all to various parts of the tower to see how it would work out. There are significantly more villagers teleported then beds, but that's part of the testing. Link to the video showing my testing is here: https://www.youtube.com/watch?v=LT-dPR2nHns if there is any other aspect of this that you want me to test and document, whether it be with a different amount of villagers, or a different shape building, or under certain conditions, please let me know.

I've done a bit more testing with this issue. With a large amount of villagers, more then the amount of beds, around 2/3 to 5/6 of the beds were filled, the rest of the villagers all crammed into the top. However, with about two dozen or so villagers, nearly all of the beds are ignored, and 1/3 or so of the villagers just end up at the top. I'm not sure why exactly this is happening, but if you want me to experiment with different building conditions and designs, please let me know.

I would like to request ownership of this report since it has been inactive since June of last year and the versions haven't been updated since 1.16.2 Pre-release 1

I don't believe that is necessary, but if you wish you are allowed to contribute to the issues of villager pathfinding.

Jared Jessup

(Unassigned)

Community Consensus

Village system

1.14.4, 1.16.1, 1.16.2 Pre-release 1, 1.16.2, 1.16.3, 20w48a

Retrieved