A lightweight, highly optimized mod that makes villager pathfinding behavior fully configurable
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
!Smart villager takes the short path to get to his job site
!Stupid villager walks off the screen to get to his job site
Villager Brain Config is designed to be almost invisible in impact or even faster than vanilla
Vanilla Logic
!Vanilla: VillagerEntity.tick(): 7.42
Modded Logic
!Modded: VillagerEntity.tick(): 5.68
Mod total
!villager-bran-config: 1.75ms
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
}
]
}

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