mojira.dev
MC-151257

Villagers don't recognize POIs that they can't pathfind to

The bug

As of 1.14.1-pre1, villagers are unable to take the profession of any profession block that they can't reach. As you can see in the screenshots below, when villagers have no path to a profession block (such as when they are trapped with a fence between them and the profession block), they won't take on the profession of the block and will stay unemployed. However, as soon as a path is made available that gives them access to the profession block, they immediately recognize it and take on that profession.

I believe the intended behavior is that villagers should recognize all POIs within a village, whether or not they have a valid path to reach them. This was the behavior in 1.14, and it would allow for players to more efficiently contain villagers and sort villagers for useful trades.

How to reproduce

  1. Spawn a villager that is surrounded by fences (or trapped on a floating island, etc., just somewhere with a barrier that keeps it from escaping)

  2. Place any profession block outside of the fence / on the other side of the barrier / in the air where the villager can't reach it

Linked issues

Attachments

Comments 3

Please do not mark unreleased versions as affected.
You don't have access to them yet.

I think this might be a bug fix for the 1.14 behavior, I consider this to be desired behavior.

Villagers need to access their workstation to refill their trades, if they are unable to reach their workstation their trades will lockout indefinitely.

This would keep villagers from claiming a workstation in a player's base

Can confirm in 1.17.1 but this seems intentional.

VitaminWhy

(Unassigned)

Confirmed

Village system

Minecraft 1.14.1 Pre-Release 1, Minecraft 1.14.1 Pre-Release 2, Minecraft 1.14.1, Minecraft 1.14.2, Minecraft 1.14.3 Pre-Release 2, 1.15.2, 1.16 Pre-release 2, 1.17.1

Retrieved