promotional bannermobile promotional banner

Encounter: Mob AI Tweaker

Allow modpack developers to add targeting/avoiding rules for entity AI.

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.

Example: The Villager is running away from the Sheep

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

  1. You can include this mod in your modpack.
  2. Passive mobs (e.g., villagers) cannot attack, even if hostile targets are added to their AI.
  3. Slimes cannot deal damage to added hostile targets for unknown reasons.
  4. Hot-reloading might not apply to mobs already spawned in the world. Changes will take effect on newly spawned mobs.
  5. 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.

Encounter: Mob AI Tweaker Team

profile avatar
  • 132
    Followers
  • 61
    Projects
  • 20.2M
    Downloads

More from hakujouchoView all

  • Caster Curios Bonus project image

    Caster Curios Bonus

    Add some interesting Curios accessories for Iron's Spells 'n Spellbooks!

    • 417.4K
    • November 26, 2026
  • Peyro's Scythes & Spells project image

    Peyro's Scythes & Spells

    An Iron's Spellbook Addon, adding Transformable Scythes and some Spells from one of my favourite light novel.

    • 658.7K
    • November 26, 2026
  • RPG Gods ReBelieve project image

    RPG Gods ReBelieve

    Port of RPG Gods. Flexible system to worship ancient gods and gain their favor! Add intergration also.

    • 35
    • November 21, 2026
  • OPack2Reload project image

    OPack2Reload

    Prevent Minecraft from reloading the resource packs if the player doesn't really change the selected packs. Also add a "Cancel" button to PackSelectionScreen.

    • 3.8M
    • November 9, 2026
  • Caster Curios Bonus project image

    Caster Curios Bonus

    Add some interesting Curios accessories for Iron's Spells 'n Spellbooks!

    • 417.4K
    • November 26, 2026
  • Peyro's Scythes & Spells project image

    Peyro's Scythes & Spells

    An Iron's Spellbook Addon, adding Transformable Scythes and some Spells from one of my favourite light novel.

    • 658.7K
    • November 26, 2026
  • RPG Gods ReBelieve project image

    RPG Gods ReBelieve

    Port of RPG Gods. Flexible system to worship ancient gods and gain their favor! Add intergration also.

    • 35
    • November 21, 2026
  • OPack2Reload project image

    OPack2Reload

    Prevent Minecraft from reloading the resource packs if the player doesn't really change the selected packs. Also add a "Cancel" button to PackSelectionScreen.

    • 3.8M
    • November 9, 2026