Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Villagers attempting to pathfind through walls #12043

Open
luddebjorken opened this issue Jan 28, 2025 · 1 comment
Open

Villagers attempting to pathfind through walls #12043

luddebjorken opened this issue Jan 28, 2025 · 1 comment
Labels
status: input wanted Looking for community feedback on this issue. upstream: vanilla Issue exists in vanilla Minecraft. version: 1.21.4 Game version 1.21.4

Comments

@luddebjorken
Copy link

Expected behavior

  • Villagers pathfind correctly to beds and workstations according to their schedule, going through doors to get into houses.

Observed/Actual behavior

  • Villagers attempt to access bed/workstation through the wall instead of walking inside the building, if the bed/workstation is close enough to a wall

Steps/models to reproduce

  • Construct a small box/house with an opening on one end
  • Place bed inside the box adjacent to one of it's walls opposite the opening
  • Spawn villager outside the wall on the side with the bed
  • Set time to night
  • Observe villager pathing

Plugin and Datapack List

None

Paper version

[23:50:10 INFO]: Checking version, please wait...
[23:50:10 INFO]: This server is running Paper version 1.21.4-131-main@1004374 (2025-01-28T21:51:56Z) (Implementing API version 1.21.4-R0.1-SNAPSHOT)

Other

Might not replicate 100%. Making walls >4 blocks thick sometimes fixes the issue.

Tested same world on vanilla server with no issues.

@Malfrador
Copy link
Member

Malfrador commented Feb 2, 2025

This seems to be a vanilla issue, https://bugs.mojang.com/browse/MC-160582.
I can also reproduce the villager using the bed through a 1 block thick wall, just like in the vanilla issue.

Unsure if it makes sense to fix this on Paper, messing with mob AI usually upsets the people who expect some level of vanilla parity. Although a config option might work here.

@Malfrador Malfrador added upstream: vanilla Issue exists in vanilla Minecraft. status: input wanted Looking for community feedback on this issue. and removed status: needs triage labels Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: input wanted Looking for community feedback on this issue. upstream: vanilla Issue exists in vanilla Minecraft. version: 1.21.4 Game version 1.21.4
Projects
Status: No status
Development

No branches or pull requests

2 participants