Download Encounter: Mob AI Tweaker — Minecraft Mods — MetaMods

Encounter: Mob AI Tweaker

Active

Downloads

0

Last update

8 months ago
Client
Adventure
Utils

Mob AI Configuration in Minecraft

When creating modpacks, developers often face the problem of incompatible behavior between creatures from different mods. Mod authors cannot anticipate all possible combinations, leading to illogical situations - for example, monsters from one mod ignoring NPCs from another.

The Encounter: Mob AI Tweaker mod solves this problem by allowing fine-tuning of creature behavior through configuration files. You can specify exactly which mobs will attack or flee from other creatures, with changes applied instantly without world reload.

Example: Villager running away from Sheep

Configuration Setup

The configuration file is located in the config/encounter folder and has the following format:

{
  "entity_id": "example:entity_1",
  "avoid": [
    "example:avoid_1",
    "example:avoid_2"
  ],
  "hostile": [
    "example:hostile_1",
    "example:hostile_2"
  ]
}

Add entity registry names (e.g., minecraft:zombie) to the appropriate lists, then execute the /reload command or re-enter the world to apply changes.

Important Features

  • Passive creatures (e.g., villagers) cannot attack, even if you add attack targets to their AI
  • Slimes for unknown reasons do not deal damage to added targets
  • Changes apply only to newly spawned creatures - existing ones may not update
  • Villager AI has unique behavior: canceling flee settings requires game restart
  • The mod can be freely included in any modpacks
Project members
mikhailtapio

mikhailtapio

hakujoucho

hakujoucho

Created: 10 Feb 2025

ID: 70931