Villagers cannot pathfind around walls to their beds
When a villager (v2) tries to go to bed, it can happen that it approaches its claimed bed from the other side of a wall. When this happens, it appears to pathfind through the wall. When it can't reach it, it displays anger particles and wanders for a short time. Sometimes as it wanders it displays green particles as if it discovered the bed again, and sometimes it doesn't, but in either case it can get into a loop trying repeatedly to pathfind through the wall. I have also seen this happen after the villager gets up: It tried to pathfind to its workplace through the wall.
I have attached a test world. To reproduce the problem, simply observe the sole villager for a while.
2019-03-06, 05:14 AM
2024-12-19, 07:30 PM
109
56
305639, 204502
1.21.20.21 Preview - 1.21.60.24 Preview
1.21.20.21 Preview, 1.20.10.21 Preview, 1.19.70.26 Preview, 1.14.20 Hotfix, 1.11.0.3 Beta, 1.11.0.5 Beta, 1.11.0.7 Beta, 1.11.1, 1.14.30 Hotfix, 1.14.60 Hotfix, 1.16.1, 1.16.200, 1.17.0, 1.17.2 Hotfix, 1.17.41 Hotfix, 1.18.2 Hotfix, 1.18.31, 1.19.31 Hotfix, 1.19.51, 1.19.60, 1.19.63, 1.20.0.22 Preview, 1.19.80, 1.19.81 Hotfix, 1.19.83 Hotfix, 1.20.0, 1.20.15 Hotfix, 1.20.32 Hotfix, 1.20.51 Hotfix, 1.20.71 Hotfix, 1.21.1 Hotfix, 1.21.2 Hotfix, 1.21.23 Hotfix, 1.21.30, 1.21.31 Hotfix, 1.21.41 Hotfix, 1.21.50, 1.21.51 Hotfix, 1.21.60.24 Preview
-