Normal behaviour:
Place villager inside minecart
Place jobsite block beside villager
Villager almost immediately picks up profession
Slow behaviour:
Place villager inside minecart
Create box around villager to block pathfinding
Place jobsite blocks outside of the box
Place jobsite block beside villager as before
Villager takes much longer to pick up profession
A 10x10 grid of barrels was enough for me to notice the issue with my computer. If you have a storage system using barrels or a trading hall nearby this issue means it will take a long time to set a villagers profession if you are doing it nearby.
Screenshots taken immediately after placing down the lectern. With no nearby jobsite blocks, the profession updates almost instantly, and with jobsite blocks nearby, you have plenty of time to take a screenshot.
Attachments
Comments 9
I've seen the same behaviour and it seems to matter how many job sites there are and where they are. The villager seems to be able to find a workstation pretty quickly if they are all in the same chunk as they are but it takes a long time if they are not. I made a video showing this behaviour here: https://youtu.be/jyiJPvzvyEs There is a world download also here where you can easily recreate the issue: http://bit.ly/2MNUZLK.
This is an important bug to fix as many people (myself included) use the workstation blocks as decoration and having a lot of them in an area affects the gameplay in a negative way. I had to remove 2000 cauldrons that I was using as a ceiling decoration for example.
I hope that's useful <3
Logic
Since workstation selection is now depending on path finding, this really shouldn't happen. The code should ever only check places the villager can path find to. I assume this is a remnant from the time work station selection was not tied to path finding. Hope it gets fixed soon.
This is a confirmed problem in 1.16.1. I'm honestly surprised they haven't fixed this yet. I suggest they completely redo the way villagers pathfind so that they pathfind to the nearest block instead of blocks they cannot access. Hopefully this bug gets fixed soon in 1.16 because if not, trading halls will be broken forever 😞
I just got bit by this bug in 1.16.5, villagers take forever to get their profession in some places, whereas in other it is instant.
I don't think this should be discarded, I've been noticing this for some time but just looked in here for the first time, I've seen this problem in 1.18.x, 1.19.x and now on 1.20.4 with 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.
Can you attach some screenshots?