mojira.dev
MCPE-131043

Villagers of same profession switching workstations

This issue is identical to MCPE-46157

I brought in 24 villagers, one at a time from over 100 blocks away and linked each one separately in cells to their own work stations. They stayed linked and refreshed their trades for approximately 20 minecraft days without coming unlinked. 

Since their original linking, I have not brought any new villagers into the area or placed any workstation of any other type (e.g. placing down a composter for personal use), anywhere within the trading hall.

 

There were a couple of the villagers whose trades I maxed out prior to them coming unlinked and those villagers have not refreshed their trades. For the villagers who did not restock trades, I broke their workstations to confirm they were no longer linked to the station in front of them.

 

The trading hall goes across 4 chunks, but my expectation is that a villager who is locked in a 1x1 block area with their linked station in front of them would not come unlinked.

 

See image attached of several villagers unlink and relinking incorrectly.

 

 

 

Related issues

BDS-13724 Villager trading hall pathfinding issue. MCPE-111672 The villagers still steal each other's workstations MCPE-131778 Villagers disengage from their workbench upon entering and exiting a world for a long time (1 hour) MCPE-131975 Villager trading hall pathfinding issue. MCPE-139277 Villagers are not working MCPE-151404 Villager Glitch MCPE-153837 Villager linking to work tables that are already linked with other villagers MCPE-158217 Villagers sometimes switch job sites MCPE-160812 Villagers do not retain workstations after 1.19.20 MCPE-165929 Villagers Sharing Work Stations/Constantly Changing Work Stations MCPE-166686 Villager Workstation Glitch MCPE-178429 Villagers keep exchanging work stations MCPE-179421 Villages change workstations after curing MCPE-181224 Villagers stealing already claimed workstations MCPE-181261 Multiple villagers claim same workstation MCPE-220755 Villager with a job took another job from a villager

Attachments

Comments

migrated
[media]
migrated

Well from my experience its all about the beds in Bedrock. If you broke the Linked bed, they have the habit of switching Work Stations. Even the maxed out one also switch Work Station only and only if the bed that they are linked to is broken.

GoldenHelmet

Are the villagers that unlinked all on one side of the hall? I am wondering if a chunk border has anything to do with it, e.g. X = 463-464.

We would like to get a copy of a world save where this issue occurs to aid investigation.

migrated

@GoldenHelmet - The area with the Librarians has 28 Librarians and it sits in an area which covers 4 adjacent chunks (in a square). The Librarians are locked in place, so they can't move across to another chunk.

Because this bug was listed a month ago, I had to do some digging to find the correct save file. The thing is, it appears this bug has now been fixed in the latest version. I have a save file of the trading area just before the Librarians unlinked themselves and I have a save file from a bit later where the same Librarians are unlinked, which is when I posted this bug report.

If I go back to the older saved file: Things that used to trigger this issue were breaking one of the Librarians stations would cause them to all to unlink, or maxing out a couple of trades with one of the Librarians, or sleeping in the only bed which is next to the trading hall. Previously the unlinking would happen within one minecraft day, but now the issue does not occur with the save game doing any of the above actions.

The save file is large (over 30MB) so I couldn't upload it when I created this report. Let me know if you are still interested and how I can send it to you, or just close this report as Resolved.

GoldenHelmet

sleeping in the only bed which is next to the trading hall.

This destroys the village and all of the links.

I am setting this report to Awaiting Response. If anyone can reproduce workstation switching that is not due to unlinking all of the beds, please comment.

migrated

I can reproduce it because I have had the same problem in my world for my iron farm I had to keep relinking the workstations. Please re-open the original bug report MCPE-46157.

GoldenHelmet

Z: MCPE-46157 will not be reopened because the cause of the problem accounted for the by reproduction steps on that report was fixed. Since 1.16.200 the game no longer drops villagers from village data (and breaks their links) just because they are outside of simulation distance for too long while part of the village is simulated. It now checks whether they are still at the position where they were last saved, and if they are it keeps them in the village data and preserves their links. Any workstation swapping happening since then has to be due to a different cause, which we have not identified yet. If you know how to reproduce the workstation links breaking/changing without either (a) destroying the village by unlinking all beds, or (b) force-closing the app (because neither of those would be bugs in the game itself), then please list the steps to reproduce the bug. All you stated on your other report is that you exit and come back in, but that alone clearly does not trigger the problem for the vast majority of users, so it must be something else.

EveryCabbage884

Resolving temporarily as Awaiting Response. Is this still an issue in the latest versions of the game (1.17.30 Hotfix or 1.17.40.21 Beta)?
This ticket will reopen automatically when you reply.

migrated

I've experienced this in 1.17.4 on Realms. I can confirm I broke the linked beds.

migrated

I did not experience this issue until 1.17.40

migrated

I found a small village with approx 6-8 villagers. I fenced in the entire area and added more houses, beds and farms. My village is approx 150 x 150 blocks in multiple chunks with 60-80 villagers running around. I placed about 15 composters, 6 smithing tables, 6 blast furnaces and 3 lectures. I placed the 3 lectures, one at a time, until I had the books I needed. I traded with them to lock the trades. ALL villagers where left to run free. Several minecraft days later, I came back and almost all villagers had a trade of some kind although not enough workstations for them. Most of the villagers had swapped or lost their stations. Im playing on PS4 Bedrock with the latest update and this bug is active as of 1/26/22

migrated

Just had this issue start happening to me. Large trading hall and after using a zombie to turn villagers and purify multiples at a time they started stealing eachothers jobs and multiple villagers are working at some stations that others have already claimed. Same conditions, multiple chunks. 1x1 cells with their work station. It's absolutely destroyed my hall at the moment even trying multiple fixes.

I've got about 140 villagers. 36 in each quadrant over multiple chunks. Different jobs, never had an issue with any of them except a couple before this. After transforming villagers into zombies and purifying them multiple at a time is when their AI broke and started taking other stations.

EDIT
I've had them come in one at a time back at around April or May last year. They were fine until just recently.

Found a small fix, at least in my situation. 
break all workstation blocks that are for the villagers jobs. Place one down and look for the one that is linked to it. break it and place it in the villagers cell. Move onto the next workstation etc...

I'm not sure how well this works for others but for mine wiping all workstations that the villagers that are bugged are using resets them. If I can find any other information ill make another update.

GoldenHelmet

thehobbit95:
When you zombify a villager it is no longer a villager and therefore it cannot retain a link to a workstation. The village keeps no memory of that particular villager, so when you cure it it is treated just like a new villager and the village will assign it the next available workstation. The priority for assigning workstations is intentionally not based on which is closest, per MCPE-45270. As a result it can be expected that if you zombify and cure a bunch a villagers at once then most will end up with different workstations than they had before.

The procedure for re-linking one-at-a-time that you describe is detailed in most decent Bedrock Edition trading hall tutorials.

This bug report is not about curing and re-linking, since the description says nothing about that. It is about villagers swapping workstations for still undiscovered reasons, but possibly related to reloading the world. We still need reproduction steps for this issue.

migrated

As of the latest update my iron farm stopped working. I am familiar with the mechanics of iron farms as I have built 100s over the years. The issue on my single player world appears to be villagers linking then unlinking from work stations. They are all fletchers and have been locked in/traded with. I have tried re laying the beds and the stations. But they continue to steal each others stations which causes a lot of station hopping. I have my villages in a glass box with the stations imbedded at eye level and the beds under them. It is a basic iron farm. The only fix I can see working is replacing the villagers.

thefloody

There is an issue with the response from GoldenHelmet, https://bugs.mojang.com/browse/MCPE-131043?focusedId=1220409&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-1220409

I created this ticket and then I made the same test with Java. In bedrock 0/4 Villagers reconnected to the workstation from before they were zombiefied. In Java, 4/4 Villagers were able to reconnect to the workstations right in front of them. Java players are very easily able to convert all their villagers all at once, Bedrock users can not. It would be very nice if we had parity on this issue.

I would argue that your view of how Villagers are cured and don't need to always connect to the same workstation is flawed as it seems this is exactly the way it works on Java. Also, My ticket is specifically about curing villagers and swapping workstations. For me on Android, this is the ONLY time it happens (except if I sleep in the bed I set for the villagers, I believe this can lead them to swap workstations).

The solve here is to keep cured Villagers reconnected to the workstation closest to them. or the same as before.

migrated

(Unassigned)

710566

Community Consensus

Windows

needs-repro-steps

1.17.11 Hotfix, 1.17.0, 1.17.41 Hotfix, 1.18.2 Hotfix, 1.18.12 Hotfix, ..., 1.19.51, 1.20.51 Hotfix, 1.20.62 Hotfix, 1.20.81 Hotfix, 1.21.81 Hotfix

Retrieved