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

Villager is stuck in the permanent loop, going through and instantly back through the door, cannot pathfind correctly to the claimed bed.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.19.2
    • None
    • Windows 10 Home
    • Unconfirmed

      What I expected to happen was...:
      Villager goes through the door and sleeps in the claimed bed.

      What actually happened was...:
      Villager is stuck in the permanent loop, going in and instantly back out through the door, cannot pathfind correctly to the claimed bed.

      After exiting villager is going away from the door for a short distance (like 5-10 blocks), then goes back to the door, goes through it and instantly back out (when another entity is in front of the door, like iron golem, the villager often doesn't even go through, just opens and instantly closes the door), and the loop starts again.

      Maybe useful notes:

      Single and double doors are affected.

      I tried to remove carpets as I know they can obstruct or cause some pathfinding issues, same for pressure plates, any not full blocks on the floor, ceiling, walls, or literally anything that can obstruct the bed.

      Removing the doors instantly helps, so I figured something with them is causing the issue.

      In some cases opening the door manually for the villager breaks the loop and he can go through it like normal.

      After taking the screenshots I realised that I'm running fabric mods, so I checked the behaviour on the vanilla 1.19.2 version, it's exactly the same as described above.

      I've attached some screenshots of the three setups experiencing this issue. I tried to show the view from the outside and inside, so investigating would be easier. (in the second set of screenshots the problematic room is the nr 9 room)

      Steps to Reproduce:
      1. Create a setup like on the attached screenshots.
      2. Set in-game time to night.
      3. Spawn the villager outside the room.

        1. 2022-08-08_19.46.38-1.png
          2022-08-08_19.46.38-1.png
          1.12 MB
        2. 2022-08-08_19.46.45-1.png
          2022-08-08_19.46.45-1.png
          822 kB
        3. 2022-08-08_19.46.46-1.png
          2022-08-08_19.46.46-1.png
          808 kB
        4. 2022-08-08_19.46.57-1.png
          2022-08-08_19.46.57-1.png
          620 kB
        5. 2022-08-08_19.47.34-1.png
          2022-08-08_19.47.34-1.png
          479 kB
        6. 2022-08-08_19.47.42-1.png
          2022-08-08_19.47.42-1.png
          441 kB
        7. 2022-08-08_19.48.02-1.png
          2022-08-08_19.48.02-1.png
          623 kB
        8. 2022-08-08_20.49.16_2.png
          2022-08-08_20.49.16_2.png
          548 kB
        9. 2022-08-08_20.49.16.png
          2022-08-08_20.49.16.png
          593 kB
        10. 2022-08-08_20.49.19.png
          2022-08-08_20.49.19.png
          569 kB
        11. 2022-08-08_20.49.27.png
          2022-08-08_20.49.27.png
          604 kB
        12. 2022-08-08_20.49.41.png
          2022-08-08_20.49.41.png
          609 kB
        13. 2022-08-08_20.49.44.png
          2022-08-08_20.49.44.png
          692 kB

            Unassigned Unassigned
            Trace404 Trace404
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: