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

Villagers can pathfind over rails when already standing on rails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • 1.21.1
    • None
    • Confirmed
    • Mob behaviour

      In this situation the villager pathfinds to the lectern and goes over rails in the process even though it is possible to avoid all rails with the only exception being the rail he is already standing on.
      This behavior was confusing for me when trying to prevent villagers from pathfinding to barrels i used for storage. I thought blocking off the path with rails would be enough but villagers in minecarts just ignore rails.

      Steps to Reproduce:

      1. Recreate the following setup:
      2. Spawn a villager on the bottom rail

      Expected Result:

      Because there is a one block gap between the rails, the villager would still pathfind around the rain line instead of over it.

      Observed Behavior:

      The villager walks off the singular rail, and then pathfinds over the rail line to get to the work station.

      Screenshots/Videos:

      2024-08-10_14-18-27.mp4

      Notes:

      Villagers (entities) not pathfinding over rails is WAI per MC-33359.

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

              Created:
              Updated:
              Resolved:
              CHK: