Villagers are supposed to link only to workstations within a 16 block horizontal, and 4 block vertical area. However, upon linking to a workstation, if moved outside of this area, the villager will continue to be linked to this workstation and will not link to any other workstations.
This can be easily replicated by placing a villager on a piston, then going 4 blocks down from where the extended head of the piston will be. Next, place a workstation so that the villager, when on the extended piston, won't be able to link to it, however, will link when the piston isn't extended. Unpower the piston, then the villager will link to the workstation. Upon extending the piston again, the villager will still be linked to the piston and will not link to any other workstations in the area. This also happens with rails, and presumably any other way that villagers might be able to move.
This makes villagers incredibly inconsistent, as the only way to delink them from this workstation would be to break it or move them incredibly far away. Ideally, Bedrock should get Java linking mechanics, but this seems like unintended behavior for Bedrock linking mechanics.
Related issues
relates to
Comments


Can confirm this still happens on Bedrock v1 21.80
Can confirm, affects 1.21.73. This is a different (but related) issue than those described in MCPE-63311 and MCPE-50441.
The bug here is that for some reason, employed villagers don’t forget POIs (this isn’t limited to workstations, as I could reproduce this with beds too) and will ignore any other workstation within the vicinity unless the original POI is removed. They also won’t lose their employment status.
Steps to reproduce:
Summon a villager and place a workstation.
Teleport yourself and the villager around 100 blocks away from the site.
Follow the villager and place other workstations nearby.
Observed results:
Villagers that have claimed a POI will always pathfind back to it, regardless of the distance. They won’t lose their employment status even outside the village boundary, and cannot be tempted to link to other POIs. Sometimes they may take a “roundabout” path back to their POI, and sometimes it’ll be more direct, but regardless, they always head in the general direction of the site regardless of how far away they’re moved and refuse to link with any other POIs.
Expected results:
They should lose their employment status after a specified time, and be able to link to other POIs.