Steps to reproduce
Place a workstation.
Spawn a villager.
Expected result
The villager claims the workstation.
Actual result
The villager does not claim the workstation. Villagers only claim workstations if they are in a village defined by at least 1 bed.
Original description
After creating a villager spawner I decided to clear out my old villagers and create a villager "mall" for me to do my shopping. Removing the villager work stations and transporting them to the "mall" (in screenshot) regardless of if I used adult villagers or children villagers would either get random jobs (which there were no job blocks for) or would not take jobs. When a villager would take a job they would then have "the first trade completed" and have xp already earned despite me never trading with them. This caused me to kill them and bring in more children who would grow up in the mall with the work blocks who again, either will not take jobs or choose a random job even when the block is not within range. This is evidenced by the high number of farmers with cartography tables.
Linked issues
is duplicated by 18
Attachments
Comments 4
After further testing It appears that beds are required for villagers to take professions. I am not sure if this is intentional or if it is a bug so I will leave it open.
We can only track one issue per ticket, so I am revising the summary to focus on the linking problem you had. Cured zombie villagers starting with XP and locked into professions is being tracked at MCPE-48712. Villagers spawned by spawn eggs or spawners having random professions is being tracked at MCPE-46034.
I believe it is intended that villagers have to be in a village, defined by at least one bed linked to a villager, in order to link to workstations. However, I have not found an official statement of that fact. The 1.11 changelog only says
Villagers now sleep in beds
Villagers now visit their job sites during the day and go home at night
This is still an issue on minecraft PE 1.19.63 . I just spent hours testing all the different work stations and none converted my unemployed browncoat villager into any profession until a bed was placed in a location accessible by one of the nearby villagers, which instantly made the unemployed villager employable.
Villagers are also unable to restock their goods. This means that even when they have access to a work station they will not take a job or restock making me unable to level them in any way or complete trades after they initially run out of stock.