mojira.dev
MC-202083

Villagers attempt to pathfind to workstations they cannot access because there is a block above the workstation

Despite the villager (pictured in attachments) being unable to claim the workstations (pictured) because there is a block above them, it attempts to pathfind to it, leading to him getting stuck until the work part of the day is over.

It seems the villager always pathfinds towards the highest available block that's above the workstation and on its x-z position. After reaching this point, it stops moving and stares downward.

After removing the workstation or the block above it, the villager pathfinds normally again and doesn't get stuck.

Likely related to MC-193105, but that issue only touched on armorers. This affects all types of workstation/villager. I do not recall this behavior being intended, and it is not resolved as of 1.16.3.

Linked issues

Attachments

Comments

galaxy_2alex

The problem here actually might be that it is too high - a villager must have full unrestricted access at the bottom level of its model.

Dual Iron

@Galaxy_2Alex I don't see how that resolves this issue—aren't villagers supposed to ignore inaccessible workstations anyway? 

Also, if I'm understanding what you mean, that isn't what's causing the issue. See here in an isolated environment:

[media]

With the block above the smithing table, it cannot access the workstation.

[media]

With the block above removed, it pathfinds just fine to it and claims the job.

[media]

If the workstation is completely inaccessible, the villager does not try to pathfind to it and successfully ignores it.

The issue remains.

galaxy_2alex

You are absolutely correct, thank you for taking the time test. I have reworked MC-155269 to not only include the village-specific issue.

Robert Lallier

I don't know what you think you did to fix this, but the problem is not entirely resolved. In the plains biome armorer shop, the villager does not path to the blast furnace and pick up the armorer job because he ends up standing on the smooth stone block to the side of the blast furnace.

Dual Iron

(Unassigned)

Unconfirmed

(Unassigned)

1.16.3

Retrieved