Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-235097

Villagers will not lose their job block if taken far away from it

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.17.1, 1.19
    • None
    • Community Consensus

      Please read this in full before marking it as a duplicate of MC-149835 as it is not the same.

      In 1.14 to 1.14.3, if a villager is taken far away enough from their job block, they will immediately lose their job (not even having enough time to take them out of the boat that I used for testing). In 1.14.4 and 1.15.2, this change took 2 in-game hours in my testing. In 1.16.5, this change took an entire in-game day. In 1.17.1, this change did not happen within 7 in-game days. This occurs both on single player and multi player worlds hosted by other people. Giving them a bed or other job blocks does not seem to change their behavior. The screenshots below show a screenshot of what time it was when the villager lost their job after being taken far away from their job block, except for the 1.17 screenshot, which shows the villager still not losing their job despite waiting from Day 0 to Day 7. The villager will eventually lose their job, which they did on a server I was on, but it takes an extremely long time (roughly 50 in-game days, I do not have any exact measurements).

      This can be very annoying when transporting villagers large distances only to find that they will not change their jobs and will continuously try to walk to their old job site.

      What I expected to happen was...:
      Like in versions 1.14 to 1.14.3, villagers immediately lose their job if they are too far away and thus cannot pathfind to their job block. At the very least, like in versions 1.14.4 to 1.16.5, they will eventually lose their job after a while.

      What actually happened was...:
      The villager did not seem to lose their job at all and would continuously try to walk back to their job block during job hours.

      Steps to Reproduce:
      1. Create a world. Any world will work, but a superflat world with a blue ice floor will make it easier.
      2. Spawn a villager and let them claim a job block.
      3. Take them far away from their job block. In my testing, I used a boat to bring them 500 blocks away. Also be sure the time of day is between 2000 and 9000 so that the villager will attempt to change jobs. In my testing, I set the time to 3000.

      4. The villager will not lose their job for a very long time. 

        1. 1.14.3.png
          1.14.3.png
          1.09 MB
        2. 1.14.4.png
          1.14.4.png
          956 kB
        3. 1.15.2.png
          1.15.2.png
          931 kB
        4. 1.16.5.png
          1.16.5.png
          1.17 MB
        5. 1.17.png
          1.17.png
          1.37 MB

            Unassigned Unassigned
            SomeRandomUser Joseph
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: