Expected behavior
Villagers pathfind correctly to nearest reachable blocks
Observed/Actual behavior
Villagers pathfind in a straight line to blocks, and if stuck on a wall/ceiling/floor, do not give up on the block or find a different route.
I haven't seen these problems in single player, only on my Paper server, but frequently, villagers targeting a bed will end up behind their house staring at the wall instead of going around to the front door. I have also had issues where villagers will refuse to use stairs or slabs to go upstairs or downstairs to get to the block they are targeting, and will instead stand directly above or below the block and never be able to reach it.
Steps/models to reproduce
Create a scenario where the shortest path between a villager and their target block is blocked by some means, where an alternative (possible) path would require walking farther away from their target. Observe the villager getting stuck near their target block, but unable to choose the longer path that would allow them to actually reach it.
Plugin and Datapack List
None
Paper version
version
[22:36:31 INFO]: This server is running Paper version 1.21.4-144-main@edacfdf (2025-02-09T10:56:49Z) (Implementing API version 1.21.4-R0.1-SNAPSHOT)
You are 77 version(s) behind
Download the new version at: https://papermc.io/downloads/paper
Other
No response
Expected behavior
Villagers pathfind correctly to nearest reachable blocks
Observed/Actual behavior
Villagers pathfind in a straight line to blocks, and if stuck on a wall/ceiling/floor, do not give up on the block or find a different route.
I haven't seen these problems in single player, only on my Paper server, but frequently, villagers targeting a bed will end up behind their house staring at the wall instead of going around to the front door. I have also had issues where villagers will refuse to use stairs or slabs to go upstairs or downstairs to get to the block they are targeting, and will instead stand directly above or below the block and never be able to reach it.
Steps/models to reproduce
Create a scenario where the shortest path between a villager and their target block is blocked by some means, where an alternative (possible) path would require walking farther away from their target. Observe the villager getting stuck near their target block, but unable to choose the longer path that would allow them to actually reach it.
Plugin and Datapack List
None
Paper version
Other
No response