If villagers are around multiple other villagers with jobs, it takes a long time for them to take a job.
It often takes several minutes until they accept the job, even if they are trapped directly in front of the job table.
It only takes around 6-8 other villagers with jobs in the vicinity for the issue to appear.
A similar issue seems to have been resolved previously (MC-175334), but the behaviour is definitely back in `1.17`.
There is also an additional report in MC-222224, which was invalidly closed without proper analysis.
Linked issues
is duplicated by 3
Attachments
Comments 16
From MC-231407:
After some further investigation I was able to figure out the cause.
A villager seems to randomly pick a free job site block in the area, even if it can't pathfind to the target.
So if a unreachable block is assigned, the villager will ignore another one, even if it is right in front of it.
Further, it seems like re-assignment happens after some time, so eventually the reachable one will be chosen and the villager takes the job.
Seems like the obvious fix is to exclude unreachable job blocks from the selection.
Is that not still an issue that should be resolved? Why should they be able to find a POI that they cannot pathfinder to? That just breaks things does it not?
I have been having this issue with a villager trading post I’m making. At the beginning I had about 3 villagers separated in 3x3x1 spaces with beds and work stations to keep them in their respective areas. I was re-rolling one villagers trades for about 30min with no issue. I could destroy and replace the work station and every time the villager would get a new trade like it should.
But later when I had brought in more villagers that I had been breeding and moving during the night, they now will not grab a job at all. I have tried placing work stations in front of all of them. I have tried working with only one villager at a time with no other untaken work stations placed. But they still do not grab a job for about 10min or more. This is extremely frustrating.
I'm having the same problem. Made a villager breeder which was working perfectly, being able to break the workstation and change his profession. Upgraded to 1.17 and was working but suddenly for no reason I can find, it's no longer working - villagers can take more than 10 mins to accept the workstation again after breaking it. Checked the number of workstations in nearest chunks and testes by removing them but didn't work. Hope it gets fixed soon.
I have since tested the issue with 1, 2, 3 and 4 players in game On my multiplayer server it has been the same every time. There seems to be a related issue where villagers do not find their bed at night. I have multiple villages every night that will sleep for a tick and then wake up again. They will attempt to sleep like this a lot throughout the night. There are no monsters in sight either. They do not seem to move around much either. This movement issue has been causing issues with my iron farm. They will appear to be frozen in one spot for days, like they cannot decide where to go, because they do not find the work station or bed. Definitely looks like a POI and path finding issue
Still happening in 1.20.10
I have been sitting here trying to get this villager to claim this composter for 30+ minutes, sometimes breaking it and replacing it. The villager is over 100 blocks away from any workstation, village, or home location.
[media]Issue is only corrected upon a villager claiming a bed. Villagers will not claim workstation without a bed.
As of 1.20.4, this is still an issue. Playing on a multiplayer server, and villager connection times started out fine. But for whatever reason now the villagers are taking a ridiculously long amount of time to connect to the workstations. I've tried adding beds, removing all the beds, breaking every bed and possible unclaimed workstation in a 50 block radius, and still they're taking at least 2 minutes to connect, if they even do.
Coming from another issue that was closed and since it seems this is the latest open issue related to this problem, I've noticed this multiple versions over the years, 1.18.x, 1.19.x and now on 1.20.4 (which probably means that all 1.20.x versions are also affected) in this next screenshot:
[media]The villager in the middle has a lectern right in from of them but it is looking elsewhere, thanks to F3+B you can see that it's looking and some other unclaimed job site meant for us the server players that's within the 48 block sphere for job searching. Even thought there's no possible path for the villager (the trapdoor over the lectern blocks the villager) the villager still tries for the remaining 60 second period and then looks at the lectern placed in front of them.
Knowing the full behavior of job searching, this is clearly not an error but it shouldn't stay like this, if there's no available path within a few seconds of placing a provisional claim on a random block the villager shouldn't wait for the player or anything else to allow a path for a whole minute.
I cannot reproduce this issue.