mojira.dev
MC-149835

Villagers can find a job, but can't lose the job

Villagers seem to be able to find jobs much more easily than they can lose them.  Namely, they can detect workstations that are unreachable, but they cannot lose that job until they physically arrive at that workstation.  (Note: it might be that eventually they will lose their jobs?)  Another asymmetry is they can detect blocks that are very far away (I haven't tested it but its something like 30 blocks?) but they have to be within 2 blocks of their workstation to detect that it's not there and lose it.

 

How to reproduce:

Villagers seem to be able to detect workstations that they cannot physically reach.  For example, open up a creative world, create a 6 high pillar of stone, and place a workstation on top.  Spawn a villager.  It will take the job.  Now destroy the workstation.  The villager is unable to lose that job.  If you build a staircase up to the top of the pillar, the villager will climb it and then lose their job.

 I also did the following: I would set the time to 8000, the villager would go to the pillar, walk away, and then I would set the time to 8000 again so the villager would check again.  I did this 10 times and the villager still didn't lose his job.  So it seems that if repeated attempts are required, the threshold is quite high.

Comments:

I don't know if this asymmetry is intended, but it creates some problematic behavior.  Namely, their detection range seems quite large, and I created some workstations in an area which the villagers aren't supposed to go.  It's annoying but possible to bring them all down there to see their workstations are gone.

 

Another problematic scenario occurs when I'm not sure where the villager's workstation actually was.  I suppose one could let them roam around until they find it, but this seems dangerous (for them...) – or maybe it's been filled in with other blocks and they can't get to it.

Linked issues

Comments 6

tkasriel

This is similar to MC-149576, which shows the same bug being applied, but with beds. I believe this is caused because they will not update their Brain:{memories:{}} NBT data until they actually arrive at the job site

Quinn Bast

I just found this after commenting on a duplicate here: https://bugs.mojang.com/browse/MC-150104?jql=text%20~%20%22villager%20profession%20stuck%22

I've encountered this bug where a villager can see their workstation but will not change back to a nitwit if their workbench is gone if not traded with, even during the 'work' time, they will just be permanently stuck. Placing another workbench a different type will not convert them and placing the same workbench type in the exact same spot will not link it back to the villager for them to work, causing them to be permanently stuck without a workbench. Using /data get entity on them, it shows that they still believe their workbench exists even when they can see the block and it does not exist over multiple days. This makes it so that the villager will never work at their workbench thus never refreshing their trades. I've had this happen multiple times where villagers have just been permanently locked out of their trades because their workbenches got destroyed and they cannot latch onto any new ones.

Victor Song

I think this issue not resolved in 1.14.2 version. how can I open again this issue?

Harrison

Why do you think it was not resolved?

 

It's resolved for me.  There is a separate issue with villagers, however.  See: https://bugs.mojang.com/browse/MCPE-42912

James Ashton

This issue is occurring in 1.14.2 for me.

Bryce Robertson

This issue is still occuring for me in 1.14.2 + on a server and in single player

Harrison

migrated

Unconfirmed

(Unassigned)

Minecraft 1.14

Minecraft 1.14.1 Pre-Release 1

Retrieved