Mad Villagers
The Mad Villagers modification provides pack creators with the ability to configure village residents' behavior so that they become aggressive towards players who start destroying blocks within the village territory.
Modification Features
By default, village residents react to the destruction of absolutely any blocks, with the exception of obsidian. This applies to everything: grass, trees, cobblestone, tall grass, and even regular dirt. If a block exists in the game, its destruction can provoke the village residents.
Configuration Settings
The configuration file allows for fine-tuning of the modification's behavior:
"mad villagers" {
# For Sanity [default: [minecraft:obsidian]]
S:"Blocks broken ignored by Villagers" <
minecraft:obsidian
>
# Percent that Villagers will get mad if a block is broke! [range: 1 ~ 100, default: 100]
I:"Mad Villager Chance"=100
# Distance in blocks Villagers notice blocks being broken [range: 1.0 ~ 100.0, default: 30.0]
S:"Mad Villager Range"=30.0
# Distance in Blocks around The Village Villagers aggro [range: 8 ~ 128, default: 32]
I:"Mad Villager Range From Village"=32
}
As can be seen from the configuration, pack creators can add blocks to the blacklist that residents will not react to when destroyed. It is also possible to configure the probability of aggression manifestation, the detection distance for block destruction, and the radius around the village within which this mechanic operates.