mojira.dev
MC-150104

Minecraft villagers not changing professions and farmers not farming

Villagers aren't changing into a farmer via the composter. At one point it was working and they were turning into untradable ones when I broke the profession block but then they randomly got stuck as a permanent one from one of the profession blocks in my base. Even after breaking said profession block they didn't turn into untradable ones, and even after leaving a composter with them which was the only profession block at the spot and unloading chunk for a couple of minutes, they still didn't change professions. Also after using commands to turn one into a villager because of this annoying bug, he refuses to do his farming work. Even with a bed and the composter nearby he won't plant stuff, harvest stuff or do anything that a farming villager would do.

Linked issues

Attachments

Comments 5

Villagers will only loose their profession if they check for the workplace block and notice that it was detroyed.

This only happens during their "work" time (see this https://minecraft.gamepedia.com/Villager#Schedules) and they must be able to actually see the position where the block was use the workplace.

Alternatively you could move them 96 or more block away to let them forget their profession.

Also keep in mind that this will only work if you have never traded with them, once you've traded with them (= have any Experience) they're stuck with the profession.

Regarding the second problem (farmer not farming), I have no glue but might be related to MC-148715 and/or MC-148671.

Right, didn’t know I had to move the villager. That explains why they lost their profession when moving them from their village. Alright, thanks!

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 they will not use the new workbench (only villager in range). 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.

@Quinn Bast:

I did some tests and if they are able to reach and use the workplace (not only see it), the conversion back to unemployed happens way faster.
(They did not need to actually reach it, just be able to pathfind to it).

Although the conversion to unemployed still happens on some occassions if the villager was only able to see the workplace.

See attached screenshot for the testing setup I've used.

Hey @poebel, You're right, I am able to get them to always change and lose their profession when they can access their workstation (during their working hours) instead of just having LOS. However, this seems kinda unintended from the player's POV of things as it would be expected for a villager to not get permanently stuck in their profession and be unable to claim another workbench when their workbench is destroyed, especially if this is not known to the player and if the player doesn't remember where their workstation is.

Jondor

(Unassigned)

Unconfirmed

(Unassigned)

Minecraft 1.14

Retrieved