Encounter: Mob AI Tweaker
Modby hakujoucho
Allow modpack developers to add targeting/avoiding rules for entity AI.
Description
Introduction
Occasionally, the attack/flee AI behavior of certain mobs may not align with the modpack creator’s intended design, as mod authors cannot take all possible mod combinations into consideration.
For example, modA adds new monsters, while modB adds some NPCs and animals. However, when you put these two mods together into your modpack, monsters from modA show no interest in chasing modB's NPCs and animals……
In case of that, with this mod, Developers can configure the list of mobs that specific entities will attack or flee from via the configuration file (located at config/encounter), and the changes support hot-reloading for seamless adjustments.

Configuration File
{"entity_id":"example:entity_1","avoid": ["example:avoid_1","example:avoid_2"],"hostile": ["example:hostile_1","example:hostile_2"]},Add registry name (minecraft:zombie etc.) to the config file, then /reload or re-open the save to apply the tweaks.Note
- You can include this mod in your modpack.
- Passive mobs (e.g., villagers) cannot attack, even if hostile targets are added to their AI.
- Slimes cannot deal damage to added hostile targets for unknown reasons.
- Hot-reloading might not apply to mobs already spawned in the world. Changes will take effect on newly spawned mobs.
- Villager AI is unique: If you revert changes to their flee behavior, a game restart is required to stop them from fleeing previously configured targets.
Recommended Gear
AffiliateHardware and extras that pair well with this mod.
Minecraft Enderman Character Plush
Enderman plush toys, and a reliable gift for a younger player.
Mini PC for Self-Hosting
A low-power box that can sit in a cupboard and run a modded server around the clock.
As an Amazon Associate I earn from qualifying purchases.
Similar Mods
Best Pick
Best Pick adds a keybind to automatically select the best tool from your inventory for the block you are looking at. It...
project-592471
Adds a craftable Witherbold!~
Gliby's Voice Chat
Distance based real-time in-game voice chat.
Modern Online Picture Frames
Add images or GIFs to minecraft from the internet!
Cull Particles
increases fps by not rendering unseen particles
Big Explosives (4th Of July Update)
Adds Big Explosives and Bombs