Mineuniverse
Log in Register
Mods

Villager Brain Configuration

A highly optimized server-sided mod that allows full configuration of villager pathfinding malus
by joshieman
Download Claim this project
7,998 downloads
0 likes
Updated Jul 6, 2026
0 hypes
Mobs Performance Utility & QoL

Villager Brain Config

A lightweight, highly optimized mod that makes villager pathfinding behavior fully configurable

Features

  • Per-block malus control

    Customize how villagers treat different blocks in pathfinding. Blocks are configurable to any malus, block and item tags supported

  • Profession-based malus

    Configure different path preferences per villager profession.

  • Global block penalty caching

    Pathfinding results are cached for maximum efficiency across multiple villagers

  • Native modded support

    The config file supports any modded blocks or professions


Example Use Cases

  • Prevent villagers from walking into trap blocks like campfires or magma
  • Make water paths viable for fishermen only
  • Design custom village layouts with optimized navigation paths
  • Prevent villagers from wandering off paths
  • Add personality to each profession type

Pathfinding Visualizations

Smart villager takes the short path to get to his job site

Smart villager takes the short path to get to his job site


Stupid villager walks off the screen to get to his job site

Stupid villager walks off the screen to get to his job site

Planned features

  • Per-villager-type rules (eg. plains villagers, taiga villagers)

Performance

Villager Brain Config is designed to be almost invisible in impact or even faster than vanilla

Test case

  • 250 villagers
  • Each pathing to a unique workstation in a grid
  • Compared vanilla to modded using Spark profiler

Results

Vanilla Logic

Vanilla: VillagerEntity.tick(): 7.42

Modded Logic

Modded: VillagerEntity.tick(): 5.68

Mod total

villager-bran-config: 1.75ms

Configuration

All settings are in a villager-brain-config.json file in the config folder.

{
  "walk_on_block_penalties": {
    "minecraft:grass_block": 4.0,
    "minecraft:dirt_path": 0.0,
    "default": 5.0
  },
  "walk_through_block_penalties": {
    "minecraft:lava": -1.0,
    "minecraft:tall_grass": 20,
    "default": 0.0
  },
  "actions_penalties": {
    "jump": 10.0
  },
  "professions": {
    "minecraft:farmer": {
      "walk_on_block_penalties": {
        "minecraft:farmland": 0.0,
        "minecraft:grass_block": 2.0
      }
    },
    "minecraft:fisherman": {
      "walk_on_block_penalties": {
        "minecraft:water": 0.0
      },
      "walk_through_block_penalties": {
        "minecraft:water": 0.0
      }
    }
  },
  "avoids": [
    {
      "block": "minecraft:lava",
      "radius": 3,
      "penalty": -1.0
    }
  ]
}
villager_brain_config-fabric-1.0.1-1.21.5.jar
MC 1.21.5, Fabric, 1.21.8, 1.21.7, 1.21.6, Server
Release 2025-09-24 Get
villager_brain_config-neoforge-1.0.1-1.21.5.jar
MC 1.21.5, 1.21.8, NeoForge, 1.21.7, 1.21.6, Server
Release 2025-09-24 Get

More from joshieman

Moonlit Monoliths
44,063
Gallant Gauntlets
378,130
Monarchs
377
Lost Libraries
136,476
Perennial Pastries
1,328
Tidal Towns
11,949,063

You Might Also Like

Piglin Proliferation
A mod that expands on piglins!
9,996,699
Resource Hogs
Adds pigs which can help players get resources.
9,974,524
Adorable Hamster Pets
3,000+ Wild Variants, Procedural Genetics, Shoulder Launching, Diamond Sniffing, Cheek Inventories, Personalities, 50+ Animations, Wander Modes, and much more!
999,507
Mobifier
A mod allowing you to modify the attributes of any mob. Change Health, Damage, and more!
996,451
The Radioactive Terror (Kaiju/Horror Mod)
Adds in a destructive beast, inspired by Gojira himself. A monster that's entirely player-activated, with a reward for beating it!
99,938
Souls like Bosses
This mod adds soulborne bosses, which can be encountered inside structures around your world.
99,687