Mojira Archive
MC-275091

Villagers can pathfind over rails when already standing on rails

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.

Works As Intended

pilonpl

2024-08-10, 03:27 PM

2024-08-13, 07:14 AM

2024-08-13, 07:14 AM

2

3

Confirmed

Mob behaviour

1.21.1

-