Skip to content

Villager not pathfinding correctly #4037

@StarryWorm

Description

@StarryWorm

When building a compact villager trading hall with npc aligned on the x axis (negative x coordinates), villagers believe their workstation to be one block further in the negative x-direction than it really is which causes them to be unable to restock their trades. However, in singleplayer (non-paper) the villagers find the workstations properly.

Behavior expected:
Villager has "minecraft:job_site": {value: {pos: [I; x, y, z]}} when working at workstation at position (x, y, z) when using
/data get entity @e[type=minecraft:villager, limit=1, sort=nearest] Brain

Behavior noted:
Villager has "minecraft:job_site": {value: {pos: [I; x-1, y, z]}} when working at workstation at position (x, y, z) when using
/data get entity @e[type=minecraft:villager, limit=1, sort=nearest] Brain

Steps to reproduce:
https://www.youtube.com/watch?v=aK2d5-X898o

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething doesn't work as it was intended to.upstream: vanillaIssue exists in vanilla Minecraft.

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions