mojira.dev
MCPE-43071

New villagers steal workstations from established villagers

Updated description by @unknown

Steps to reproduce

  1. Build a village across 3 aligned chunks (A, B, C) as follows: (or use

[media]
  1. )

    • Place a bed and workstation in chunk A, then spawn a villager and let it link.

    • Place a bed in chunk C and a workstation in chunk B. This workstation should be a different type than the workstation in chunk A. Again, spawn a villager and let it link.

    • Trade with the villager who works in chunk B to lock in his profession.

    • Place bed in chunk B, then spawn a villager and let it link.

  2. Set time to night and allow the villagers to get to their beds.

  3. Fence off chunk A so that the villager who sleeps there cannot wander out of the chunk.

  4. Move away from the village in the chunk C --> chunk A direction until only chunk A is within simulation distance and chunks B and C are not.

  5. Wait at least 25 minutes.

  6. Walk back to the middle of the village.

Expected result

The locked-profession villager keeps the workstation in chunk B.

Actual result

The villager who sleeps in chunk B takes the workstation in chunk B.

Explanation

Steps (3-4) make the villager in chunk A the only villager who is simulated (ticked). Step (5) drops the other villagers from the villager dwellers list. Step (6) re-adds them to the dwellers list. Since the unemployed villager in B is re-added before the villager in C, he links to the workstation in B before its original owner has the chance.

Notes on gameplay impact:

  • Steps (4-6) occur naturally in a normal game context if a player spends time mining, building, etc. at a certain distance from a village.

  • This bug occurs in a similar way and sometimes in conjunction with MCPE-47212. The other bug referred to in the original description below has been resolved as a duplicate of that one.


Original description

Problem: In our man made village (See MCPE-43070 for the issue relating to this) villagers have started taking up jobs that others already have, leading them to not letting others work, and resupply their trades. For example we have one grindstone, and one smithing table, but we have two weapon smiths, and two tool smiths, and they both appeared after trading with the first of each, preventing the originals from resupplying. It's an annoying issue, since we had both the original weapon and tool smith level 3, but can no longer level them up, since their trades can't be resupplied. We could place more stations down, but we don't want more of each.

 

Steps to Reproduce: Since I'm not sure of the true cause, please see the above issue about villager overpopulation, and see if it has anything to do with it

Linked issues

MCPE-48507 Villagers Randomly Lose Jobs & Can't Relcaim Jobs After Trades Resolved MCPE-52164 Villagers Claiming Already-Claimed Profession Blocks Resolved MCPE-59651 Villagers Randomly Overproducing Babies (XB1/Bedrock/Realm) Resolved MCPE-61575 New Villagers Stealing Already Linked Workstations Resolved MCPE-64791 Profession-less villagers gain profession before unemployed profession villagers do Resolved

Attachments

Comments 29

[media]

I have seen problems like this happen in my experimental world when the villager's beds are separated too far from their workplaces. I would suggest, perhaps as an experiment, watching to see which villagers have beds more than 16 blocks (I'm not sure of the number) from their workplaces, providing a closer bed, and breaking the distant one, in that order. Wait for them to claim/use both the bed and workplace block before moving on to the next one. I suspect that those who are using the same workplace block will then sort themselves out, choosing another available workplace.

I'm not saying that this is how it's supposed to work, because I don't know what the designers intended. But it might help you get ready for 1.11 before it arrives.

P.S. The issue seems to be that there are ranges within which a villager can detect a bed and a workplace block. When it wanders, it stays within range of one or the other of them, but sometimes it can get closer to one and fall out of range of the other. At that point the other block can be taken away from it by another village looking for that type of block. Having the bed and workplace block close to each other minimizes the chance of that situation happening.

I have seen problems like this happen in my experimental world when the villager's beds are separated too far from their workplaces. I would suggest, perhaps as an experiment, watching to see which villagers have beds more than 16 blocks (I'm not sure of the number) from their workplaces, providing a closer bed, and breaking the distant one, in that order. Wait for them to claim/use both the bed and workplace block before moving on to the next one. I suspect that those who are using the same workplace block will then sort themselves out, choosing another available workplace.

I'm not saying that this is how it's supposed to work, because I don't know what the designers intended. But it might help you get ready for 1.11 before it arrives.

P.S. The issue seems to be that there are ranges within which a villager can detect a bed and a workplace block. When it wanders, it stays within range of one or the other of them, but sometimes it can get closer to one and fall out of range of the other. At that point the other block can be taken away from it by another village looking for that type of block. Having the bed and workplace block close to each other minimizes the chance of that situation happening.

Sounds reasonable to me. I’ll be sure to test later. Thanks for the help

Sounds reasonable to me. I’ll be sure to test later. Thanks for the help

19 more comments

Unfortunately It's still exists in 1.16.200.55

@Daniel: How are you reproducing this bug? This was reported to be fixed in 1.16.200.52.

@Daniel: How are you reproducing this bug? This was reported to be fixed in 1.16.200.52.

@GoldenHelmet  In the current version on Windows 10 I have villagers randomly unlinking from their stations and then causing all of the villagers with the same trade to unlink. There is nothing I have done to cause this. All of my villagers have been traded with, are 1-block-adjacent to their workstations in a straight line and are locked in 2 blocks standing on water inside a trading hall.

 

The issue comes up approximately every 3 Minecraft days where one group (a particular trade) of villagers will all delink from their workstations, will show the frustration sign and will not restock or relink to their stations.

 

Not sure if there is another current ticket linked to these issues?

@GoldenHelmet  In the current version on Windows 10 I have villagers randomly unlinking from their stations and then causing all of the villagers with the same trade to unlink. There is nothing I have done to cause this. All of my villagers have been traded with, are 1-block-adjacent to their workstations in a straight line and are locked in 2 blocks standing on water inside a trading hall.

 

The issue comes up approximately every 3 Minecraft days where one group (a particular trade) of villagers will all delink from their workstations, will show the frustration sign and will not restock or relink to their stations.

 

Not sure if there is another current ticket linked to these issues?

Ghost

(Unassigned)

380648

Confirmed

Multiple

vanilla-parity, villager

1.14.1 Hotfix, 1.11.0.4 Beta, 1.12.1, 1.12.0, 1.14.0, 1.14.30 Hotfix, 1.14.60 Hotfix, 1.16.100

1.16.200.52 Beta, 1.16.200

Retrieved