Skip to content

[Bug] Villager Pathfinding breaks in worlds created with BetterX world type #231

Closed

Description

@gmcnxtman

This bug takes place in minecraft 1.21.1.

Villagers do not correctly pathfind to unoccupied beds in worlds created with the 'BetterX' world type. Normally, villagers walk away upon finding an occupied bed, and attempt to find another within a certain range. However, when the world has been generated as BetterX, villagers stay at the same bed and continually emit green particles as if they are repeatedly 'finding' the same bed, even if other beds are within the normal pathfinding range.

Removing the mods and loading the same world does not fix the behavior. The BetterX type locks it this way. EDIT: I have found that even beds pasted from a litematica schematic (from a world with the bug) into a world generated from the start without BCLib or BetterX cause the same behavior until broken. Strange - suggests the block data of the bed is somehow to blame?

To be clear, all of this happens without BetterEnd or BetterNether installed; I have tested to see if this happens with only the three library mods mentioned in the steps, and it does.

Steps to recreate:

  1. Install BCLib, Wover and WunderLib for Minecraft Fabric 1.21.1
  2. Generate a new world with the 'BetterX' world type
  3. Locate a village
  4. Set the daytime to 12000
  5. Look inside the village houses.
  6. If all beds are occupied, spawn another villager nearby.
  7. The villager will go to a nearby occupied bed, stand on it, and emit green particles repeatedly.
  8. Placing a bed within normal pathfinding range will not cause them to pathfind to it.

BCLib

21.0.13

WorldWeaver

21.0.13

Fabric API

0.116.1

Fabric Loader

0.16.14

Minecraft

1.21

Relevant log output

Other Mods

BCLib
Worldweaver
WunderLib

Activity

  1. quiqueck commented on Oct 10, 2026

    @quiqueck
    Owner

    Thanks a lot for the detailed description – the Litematica observation was a great clue! Older versions registered the foot half of beds as a villager home. That was fixed earlier, but existing worlds kept the stale entries; they're now cleaned up automatically when chunks load.

    The cleanup ships with these upcoming releases:

    • WorldWeaver 26.301.1 (Minecraft 26.3)
    • WorldWeaver 26.201.3 (Minecraft 26.2)
    • WorldWeaver 26.101.3 (Minecraft 26.1 – 26.1.2)
    • WorldWeaver 21.800.2 (Minecraft 1.21.6 – 1.21.8)

    Written by 🤖 Wunder-Bot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions