Back to mods
AvAI project artwork

Modrinth · Minecraft mod

AvAI

This mod replaces the conventional Minecraft objective system with a basic decision tree.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which AvAI release should I use?

Updated today
alpha file 0.1+1.21.11
Game version 1.21.11
Loader Fabric

AvAI 0.1+1.21.11 targets 1.21.11 with Fabric. Installation on the client is optional. Installation on the dedicated server is optional. 1 required mod needs a matching file.

Where it goes

Is AvAI required on the client, server, or both?

Installation on the client is optional. Installation on the dedicated server is optional.

Client Optional
Dedicated server Optional
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source marks this as usable on both the client and server.

What else does AvAI 0.1+1.21.11 need?

0.1+1.21.11. Change the file and its required mods may change too.

1 required mod needs a matching file

Install Fabric API first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match. 2 come through another mod in the chain.

3 listed on this file 2 pulled in by those mods
Fabric API Needed by AvAI 0.1+1.21.11
required
No matching file
Mod Menu Optional for AvAI 0.1+1.21.11
optional
Matching file found Matched file: 17.0.0-beta.1
Fabric API Needed by YetAnotherConfigLib (YACL)
pulled in
Matching file found Matched file: 0.141.6+1.21.11

2 extra mods were pulled in by other dependencies. Indented rows show who needs each one. We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add AvAI without breaking your instance.

Built for AvAI 0.1+1.21.11. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 0.1+1.21.11. It targets 1.21.11 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fabric API first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match. 2 come through another mod in the chain.

  3. 03

    Put it on the correct side

    Installation on the client is optional. Installation on the dedicated server is optional.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 0.1+1.21.11. It opens that exact file at the source.

About this project

What does AvAI add?

AvAI

Smarter, more tactical, and adaptive AI for Minecraft mobs.

AvAI improves mob behavior with decision trees, better pathfinding, custom spawning, and statistical learning during gameplay. Mobs can make better decisions about when to chase, retreat, flank, seek shelter, or intercept a player, all with simple configuration and CPU usage controls.


Combat and behavior

  • Creepers chase players and keep their vanilla explosion behavior, with protections against wasted detonations in water or against players actively blocking with shields.
  • Skeletons maintain distance, seek shade, and use different tactics against shielded targets.
  • Zombies and other monsters can chase directly, flank, and attempt to intercept escape routes predicted by the behavior model.
  • Spiders remain peaceful in lit areas and become aggressive in darkness.
  • Endermen only become hostile when looked at and can reposition behind their target.
  • Blazes try to maintain a favorable distance during combat.
  • Ghasts reposition themselves and react to deflected fireballs.
  • Villagers use workstations, produce resources, restock trades, and socialize according to their profession.
  • Iron Golems have an optional hunting behavior with configurable range and speed.

Each mob type uses its own priorities and rules instead of relying on a single generic routine.


Behavior learning

AvAI learns while you play, without downloading models or running external training processes.

  • Records transitions between world regions to estimate likely movement routes.
  • Learns fight-or-flight tendencies based on player health and distance from threats.
  • Uses accumulated observations to help monsters choose between direct pursuit and interception.
  • Builds confidence as more similar situations are observed.
  • Saves the learned data in the world for reuse after server restarts.

The model is statistical, incremental, and shared across the server. Tactical decisions combine this learning with mob-specific behavior rules.


Spawning and virtualization

  • Custom spawning for multiple mob categories.
  • Configurable spawn attempts, interval, scan radius, and minimum player distance.
  • Population caps by category and region to prevent excessive mob counts.
  • Virtualization of distant entities, removing them from active memory and restoring them when a player approaches.
  • Persistent storage for virtualized entities and learned behavior throughout the server lifecycle.

Simple performance controls

The configuration is organized into only three tabs:

Tab Options
AI Advanced AI, alerts, and Iron Golem hunting
Spawn Interval, attempts, chunk radius, and player distance
Performance AI update frequency and worker thread count

You can choose between 1 and 32 worker threads, shared by the AI and entity virtualization systems. Changes made through the configuration screen or the /avai reload command are applied without restarting the server.


Information in the F3 screen

AvAI adds custom entries to Minecraft's debug screen:

  • AvAI ML: learned cells and transitions, sample counts, active sessions, fight-or-flight statistics, current threat, and prediction confidence.
  • AvAI Pathfinding: known routes, the behavior responsible for movement, node counts, and the targeted mob's destination.

No separate debug options need to be enabled in the mod configuration.


Development

AvAI is under active development, Suggestions, bug reports, and ideas for new behaviors are welcome!

Project description from Modrinth.

Pick your setup

AvAI by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

1 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

AvAI versions and loaders

1 of 1 releases match

Looking for an older file? The official Modrinth project page is in Resources.