mojira.dev
MC-151892

Villagers have trouble pathfinding to workstations

In Minecraft 1.14, unemployed villagers would claim any workstations within about 50 blocks unless they were completely enclosed in blocks.

One change I have noticed in 1.14.1 is that villagers can now only pathfind to workstations that they can stand beside. Thus, walls stop villagers from claiming workstations:

[media]

However, this causes an issue with villagers pathfinding to workstations in some cases:

  • When they are enclosed in 1x1 areas

  • When there is a block over their head

  • When there is a block over their workstation

  • When they are standing on top of the workstation

This is most common when villagers have little to no space to move around. Notice that these villagers are able to claim the workstation:

[media]

However, these villagers are unable to claim the workstation:

[media]

This can cause issues when players try to create trading halls. For example, if a villager claims a workstation but a block is placed over its workstation, the villager may be unable to pathfind to its workstation. After some testing, this only happens occasionally and only after the villager has been traded with, meaning that it becomes unable to restock. Afterwards, the villager eventually loses the workstation and is unable to reclaim it even if the block above the workstation is broken:

[media]

Furthermore, an odd bug I encountered while testing is that villagers may randomly glitch between employed and unemployed while near a workstation. I do not know the cause for this bug and was unable to replicate it on command, but I encountered it several times while testing at seemingly random times.

This villager is switching rapidly between employed and unemployed:

[media][media][media]

Attachments

Comments 10

MC-147740 and MC-151079 describe parts of my issue but not the full picture.

After messing around, i found out that villagers can still path find in an enclosed area if the only blocking them is a trapdoor where they will see it as a space they can walk through

I was doing a trading hall, and I found that the villagers can't pathfiding if they are in a pressure plate/rails.

I am not sure if this is the same issue in a different guise, but in 1.14.1 I have seen some very strange things happening with villagers and beds. Villagers seem to unreliably bond to a bed, even when it is not a bunk. I have seen villagers swap beds, and I even saw two villagers sleeping in the same bed on one occasion, with an empty bed next to them. The uncertainty in bed ownership enables breeding in situations where it should not be possible, when there should not be enough unclaimed beds.

Still happening in 1.14.2 pre-releases 1 and 2

Now with MC-147740 and MC-151079 being fixed, please check if that's still an issue for you in the latest 1.14.4 (pre-)release.

Yes, the issue has been fixed.

I don’t know how the issue is resolved. Villager path finding is horrible. They can’t get to their beds, workstations, and hang around outside trying to get to where they need to go on the wrong side of the building.

Sorry please discard my Last comment. It was suppose to be posted on the bedrock forum.

This issue still persists in minecraft 1.16.4

TurtlyP

(Unassigned)

Unconfirmed

(Unassigned)

AI, POI, Villager, Villagers, pathfind, pathfinding, workplace-block, workstations

Minecraft 1.14.1, Minecraft 1.14.2 Pre-Release 1, Minecraft 1.14.2 Pre-Release 2, Minecraft 1.14.2

1.14.4

Retrieved