
Modrinth · Minecraft mod
AvAI
This mod replaces the conventional Minecraft objective system with a basic decision tree.
Quick answer
Which AvAI release should I use?
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.
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.
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.
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.
- 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.
- 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.
- 03
Put it on the correct side
Installation on the client is optional. Installation on the dedicated server is optional.
- 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.21.11
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
AvAI versions and loaders
0.1+1.21.11
avai-0.1+1.21.11.jar
2 Dec 2026
Looking for an older file? The official Modrinth project page is in Resources.