mojira.dev
MC-152346

Villagers with locked professions whose job site blocks are replaced may not get job site back

Villagers that have been traded with whose job site blocks are broken do not get priority over other villagers when that job site is replaced. Other unemployed villagers are just as likely to take that job site block (and become that profession), leaving the original villager without a job site but still stuck in their previous profession.

This is especially annoying when there are many unemployed villagers.

 

What I expected was...

The villager whose job is locked in gets the newly-placed job site.

 

What actually happened was...

Instead, an unemployed villager took the job site block and became that profession.

 

Steps to reproduce...

  1. Place job site block to give a villager a profession

  2. Trade with villager to lock in the profession

  3. Break job site block

  4. Spawn a few unemployed villagers

  5. Re-place job site block. Most of the time, an unemployed villager will take that profession, leaving the villager with the locked profession without a job site

Example:

[media]

Attachments

Comments 3

(1.14.2v on i7/16GB/Win10)

This doesn't only happen, when the job site is broken, but also when a villager with a job site, even with a leveled profession, wanders off too far –even inside the village– and can't make it back in a given time, so that his proper job site becomes unoccupied and then gets taken by another unemployed villager.

This usually results in a leveled-up villager with improved trading values never again being able to refill their inventory.

Had this happen again and again.

This obviously results from the villages being far too extended for the villagers to find their way back to a claimed job site or even to the bell at day's end, when they wander off beyond a certain range where they could still find them.

In other words:

The villagers' pathfinding abilities doesn't match the ability of the villagers to claim job sites and the range of the village boundaries.

Villagers can lose their workstation without wandering off. I have been experimenting with trading halls where villagers are never more than 2 blocks from their workstation. They have Alzheimer's. After a while they forget they ever had a workstation, even when it is right in front of them. Their trades become locked, apparently forever. (You can see this in creative mode using the command:

/data get entity >UUID< Brain

).
I have found a workaround on a single-player world is to relog. If this is done during the villagers' work time they often rediscover their workstation immediately and unlock any locked trades, unless another villager has stolen the workstation in the meantime. The key to a good trading hall is to make sure this cannot happen.

Please check if this is still an issue for you in 1.16 Release Candidate 1 or later.

Dumplings

(Unassigned)

Unconfirmed

Village system

jobsite-block, villager

Minecraft 1.14.1

Retrieved