Barium
by Jo_brain
Barium changes how villagers move through village doors, step around each other in narrow spaces and react when a golem attacks one of them, all on the server side.
What it does
Barium is a server-side logic overhaul for villagers on Fabric. It targets the pathfinding that gets villagers stuck in doorways, makes them pass through doors placed sideways, and handles groups that pass through one door together so it stays open until the last one has crossed. When two villagers collide, the mod detects the conflict and has one of them wait briefly and step aside so the other can pass. A villager whose path is blocked for 60 ticks wipes its current path and calculates a fresh one, which often frees it from corners and fences.
Several behaviors react to Iron Golems. A villager attacked by a golem alerts the golem, which then targets the attacker even if it was never hit itself. Panicked villagers head toward a nearby golem for protection, looking within a 50-block radius, and one hit villager can set off others within 15 blocks. The mod adds no new items or blocks. It is released under All rights reserved and is not open source. Files are published for Fabric only.
Key features
Door and doorway handling
Villagers pass through sideways doors and no longer keep slamming doors or shoving each other in a loop.
Collision resolution
When two villagers meet in a narrow spot, one waits briefly and steps back so the other can pass.
Path recalculation after blockage
A villager blocked for 60 ticks discards its path and computes a new one, freeing it from corners and fences.
Golem alerts and seeking
A hit villager warns nearby villagers, and panicked villagers run toward an Iron Golem within 50 blocks.
Golem target switching
An Iron Golem retargets a villager's attacker even when the golem itself was not struck.
Compatibility
Latest build for each game version and loader.
1.21.x12 of 12 versions with builds
Only full game releases are shown. This mod publishes no snapshot builds.
Use cases
Who it’s for: Server owners who run villages with many villagers and want their movement to work better without adding content. Because the mod is server-side only, players join without installing it.
Questions
Does Barium need to be installed on the client?
Which loader does Barium support?
In the catalog
Barium is one of 29,952 Game mechanics mods on ModsFinder, and one of 19,630 Game mechanics mods for Fabric. 19,862 mods support Minecraft 1.21.11.
More from Jo_brain
Similar mods
What the author says
Make your villagers smarter, safer, and less annoying. Are you tired of villagers getting stuck on open doors? Do they constantly shove each other into corners until they suffocate? Do they just stand there and accept their fate when a Zombie attacks?
Official listing
- Modrinth page
- modrinth.com/mod/villager-pathfinding-fix
- Owner
- Jo_brain
- Published
- 2025-12-25
- Updated on Modrinth
- 2025-12-25
- Facts verified
- 2026-10-15
