mojira.dev
MC-255068

Villager is stuck in the permanent loop, unable to pathfind through the door.

Recreated behaviour from MC-255062 in the vanilla env.

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.

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.

Attachments

Comments 1

Does MC-160582 describe your issue? If not, could you attach (or link to) a copy of the world folder containing your setup?

Trace404

(Unassigned)

Unconfirmed

(Unassigned)

1.19.2

Retrieved