Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-63311

Villagers claim workstations and beds that are too far away and/or get stuck unemployed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.17.11 Hotfix, 1.17.10.20 Beta, 1.16.220.50 Beta, 1.16.0.61 Beta, 1.12.1, 1.14.30 Hotfix, 1.14.60 Hotfix, 1.16.201 Hotfix, 1.17.2 Hotfix, 1.17.41 Hotfix, 1.18.2 Hotfix, 1.18.12 Hotfix, 1.19.0, 1.19.2 Hotfix, 1.19.10, 1.19.50, 1.20.51 Hotfix, 1.20.62 Hotfix, 1.21.1 Hotfix, 1.21.21 Hotfix, 1.21.23 Hotfix
    • Confirmed
    • Multiple
    • 383732

      Steps to reproduce: (from this comment)

      1. Set bed and spawn a villager in the center of simulation distance. Wait until you see green sparkles before place other bed next to the master bed
      2. Travel beyond the original simulation distance border so that the village is now unloaded.
      3. Spawn a villager.

      Observed result:
      Villager shows green sparkles, running side to side in a holding room, looking at the bed directly as if it was set down next to master bed.

      Expected result:
      It shouldn't be able to claim bed in an unloaded area or 64 plus away. There is no POI in between.


      Original description
      Sister Ticket: MC-148733

      Villagers claim POIs (Position of Interest) that are unreasonable. i.e. Too far away or unreachable. (Notes: My villagers keep wandering back and forth and won't sleep or find a station.) They end up getting stuck in an unemployed state.

      To reproduce: 

      Cure a villager from a zombie villager and keep them in a room.

      Make sure there is a bed and a workstation.

      Most likely the villager will end up hooking to one of your barrels or a blast furnace you have that's like 50 blocks away for some strange reason..

      ===

      Possible solution is too minimize the range. 8 blocks or less or just have more weight to the closest block with no chance of claiming a block passed, say, 16 blocks. If the distance is equal, then it will be a random chance. (At least, they should be able to access it to qualify as being a POI.) An untraded villager should still have a chance to change their profession until they are traded with. Villagers should keep their POIs no matter how far in this case. (Or set a timeout of not being able to return to the original POI.) And if it is destroyed you will be able to reassign a different POI. This goes for beds too, except instead of 'work time' it would be 'bed time'. Improved AI would benefit as well to be safe.

      ===

      I want to add something I noticed. Every time I close and then reopen my world, they all reclaim a bed and it is never one right next to them. The POIs are always like 10s blocks away from them. They won't breed unless I reopen my world as well. It's like something resets each time and needs a refresh every time.

            TheTamedWolf Irritated Gamer
            Votes:
            77 Vote for this issue
            Watchers:
            38 Start watching this issue

              Created:
              Updated:
              CHK: