Back to mods
Villager Brain Configuration project artwork

CurseForge · Minecraft mod

Villager Brain Configuration

A highly optimized server-sided mod that allows full configuration of villager pathfinding malus

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Villager Brain Configuration release should I use?

Updated 1 year ago
Latest stable file villager_brain_config-fabric-1.0.1-1.21.5.jar
Game version 1.21.5, 1.21.8, 1.21.7
Loader Fabric

Villager Brain Configuration villager_brain_config-fabric-1.0.1-1.21.5.jar targets 1.21.5, 1.21.8, 1.21.7 with Fabric. The project page does not say whether this file belongs on the client, dedicated server, or both. All 1 required mods have matching files.

Where it goes

Is Villager Brain Configuration required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does Villager Brain Configuration villager_brain_config-fabric-1.0.1-1.21.5.jar need?

villager_brain_config-fabric-1.0.1-1.21.5.jar. Change the file and its required mods may change too.

All 1 required mods have matching files

Install Fabric API first. We found matching files for this game-version and loader setup.

Fabric API Needed by Villager Brain Configuration villager_brain_config-fabric-1.0.1-1.21.5.jar
required
Matching file found Matched file: [1.21.5] Fabric API 0.128.2+1.21.5

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add Villager Brain Configuration without breaking your instance.

Built for Villager Brain Configuration villager_brain_config-fabric-1.0.1-1.21.5.jar. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use villager_brain_config-fabric-1.0.1-1.21.5.jar. It targets 1.21.5, 1.21.8, 1.21.7 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fabric API first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside villager_brain_config-fabric-1.0.1-1.21.5.jar. It opens that exact file at the source.

About this project

What does Villager Brain Configuration add?

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
    }
  ]
}

Project description from CurseForge.

Pick your setup

Villager Brain Configuration by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

16 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Villager Brain Configuration versions and loaders

10 of 10 releases match

Looking for an older file? The official CurseForge project page is in Resources.