Modscraper Modscraper Minecraft
AI Improvements logo

AI Improvements

Mod

by QueenOfMissiles

Performance and logic upgrades for mod AIs

Type

Mod

CurseForge Downloads

160,336,924

CurseForge ID

233019

Modrinth Downloads

14,415,934

Modrinth ID

DSVgwcji

Last Updated

Nov 6, 2026

Description

Note 1: If you have performance issues not covered feel free to make a request. 
Note 2: It is not expected this mod improves performance in all cases. Make sure to test your results to see if you require it.

About

Simplified AI modification mod focused on performance and low-level modifications to AIs in the game. Picking up the slack for the base game and improving it for a modded ecosystem. Handling common problems such as too many animals, performance hits from swarms of zombies, and simple remove tasks skipped by larger AI improvement mods.

Story

AI Improvements was born out of the need to improve server performance for large heavily modded servers. As any experienced server owner will know a server's CPU clock time is eaten away by mods all trying to fight over resources. Most server owners and developers will try to attack this problem by trimming mods. Rather than going after the mods installed I started to look at Minecraft itself. Focusing down on how it was designed to work and how it lent to performance problems.

I found that as a server's population grows so does the amount of entities and other resources. At first, I thought "lets reduce the spawn rate of mobs on the server" this lead to a complaint about mob farming. Even with testing, it didn't show a major solution to the problem. So rather than taking that approach, I decided to improve how the AI's function. This resulted in a lot of resource and insight into different areas. After many hours, I found my solution and created this mod. 

FAQ 

I installed but didn't see a large gain as promised?
Newer versions of MC implement fixes for the AI. With the last few versions, the rotation fix was implemented in addition to other fixes. Thus, the impact of this mod is much lower than in older versions.

Can this be installed on the server only?
Yes, the mod is coded to function without it being client side

Can this be installed on the client only?
Yes, though it may not do much to improve fps. 

Where is the config?
.minecraft/config/bbm/AI_Improvements.cfg

What will happen if I disable the EntityLookHelper replacement?
You're not going to see much of an improvement in the AI code. However, if you enabled the other disable configs it should be fine.

How does this mod work for fixing performance?
It depends on the feature and version of Minecraft. Most of the performance comes from caching heavily calculated values. This has the result of reducing CPU time at the cost of an ignorable amount of RAM. See feature list for exacts...

Current Features:

Config to disable AI Watch Closest Entity

By default the config is set to false and will not do anything. When changed to true it will remove an AI segment called EntityAIWatchClosest. This AI segment handles the coded AIs use to rotate their head towards a nearby entity.Visually this will cause a few odd issues. However, for the CPU this frees up a lot of usage caused by entities. 

Config to disable AI look random, config is not enabled by default

By default the config is set to false and will not do anything. Setting the config to true will cause entities to no longer use the 'look idle' AI code. This can improve performance for servers will large populations. As almost every entity on the map will use this when not doing anything important. Visually this can cause the entities head to not rotate sometimes but mostly goes unnoticed.

Config to replace EntityLookHelper with a more efficient version, config is enabled by default

This is the main feature of the mod and can greatly improve CPU performance at a small cost to RAM. How this works is MC's look helper code is replaced with a custom version. The custom version stores some data that makes it faster to get the angle for a location. Threw some testing with VisualVM result have shown a 50% to 80% decrease in CPU usage by the AI code. For a server with 25 people on constantly this resulted in a gain from 5 to 7 tps. 

Compatibility

Mod Loaders

Forge Neoforge

Game Versions

1.10.2 1.12.2 1.14.4 1.15.2 1.16.5 1.17.1 1.18.2 1.19.2 1.19.3 1.19.4 +25 more

Recommended Gear

Affiliate

Hardware and extras that pair well with this mod.

As an Amazon Associate I earn from qualifying purchases.

Similar Mods

Included in Modpacks (2,048)

Show fewer
All the Mods 10 - ATM10 All the Mods 10 - ATM10 Zombie Invade 100 Days Zombie Invade 100 Days All the Mods 9 - ATM9 All the Mods 9 - ATM9 DawnCraft - Echoes of Legends DawnCraft - Echoes of Legends DeceasedCraft - Urban Zombie Apocalypse DeceasedCraft - Urban Zombie Apocalypse Roguelike Adventures and Dungeons Roguelike Adventures and Dungeons Cisco's Fantasy Medieval RPG [Ultimate] Cisco's Fantasy Medieval RPG [Ultimate] MC  Eternal MC Eternal Crazy Craft Updated Crazy Craft Updated All in One [Modded One Block] All in One [Modded One Block] BattleArmory TACZ BattleArmory TACZ Valhelsia 3 Valhelsia 3 Beyond Depth Beyond Depth All the Mods 3 - ATM3 All the Mods 3 - ATM3 Craftoria Craftoria All the Mods 7 - ATM7 All the Mods 7 - ATM7 Craft to Exile 2 (VR Support) Craft to Exile 2 (VR Support) Valhelsia 2 Valhelsia 2 Create: Above and Beyond Create: Above and Beyond Lucky World Invasion Lucky World Invasion All the Mons - ATMons All the Mons - ATMons Zeefski Jujutsu Kaisen Craft Zeefski Jujutsu Kaisen Craft Parasites by Forge Labs Parasites by Forge Labs Kimetsu no Yaiba (Demon-Slayer) ModPack Kimetsu no Yaiba (Demon-Slayer) ModPack Isle of Berk (Claws of Berk) Isle of Berk (Claws of Berk) Solo Leveling - Reawakening Solo Leveling - Reawakening TerraFirmaGreg-Modern TerraFirmaGreg-Modern Enigmatica 2: Expert - E2E Enigmatica 2: Expert - E2E Enigmatica 6 - E6 - 1.16.5 Enigmatica 6 - E6 - 1.16.5 Last Days of Humanity Last Days of Humanity Winter Zombies by Forge Labs Winter Zombies by Forge Labs Linggango Linggango VerityCraft - A Realistic Horror Experience VerityCraft - A Realistic Horror Experience Guns, Cars and Morph Guns, Cars and Morph All the Mods 9 - No Frills All the Mods 9 - No Frills HR: New Beginnings HR: New Beginnings Prehistoric World - Dinosaurs, Adventure & Quests | NEW PREHISTORY UPDATE! Prehistoric World - Dinosaurs, Adventure & Quests | NEW PREHISTORY UPDATE! Enigmatica 2 - E2 Enigmatica 2 - E2 Abyssal Ascent Abyssal Ascent Biohazard: Project Genesis - The Ultimate Apocalypse Biohazard: Project Genesis - The Ultimate Apocalypse New Game - An Improved Experience | 1.21 UPDATE! New Game - An Improved Experience | 1.21 UPDATE! Cisco's Fantasy Medieval RPG [Dragonfyre] Cisco's Fantasy Medieval RPG [Dragonfyre] Liminal Industries Liminal Industries Chosen's Modded Adventure Chosen's Modded Adventure MC Eternal Lite MC Eternal Lite Create Chronicles: The Endventure Create Chronicles: The Endventure All the Magic Spellbound - ATMS All the Magic Spellbound - ATMS HBM Hamster Reloaded Official Server Pack HBM Hamster Reloaded Official Server Pack Life in the village 2 Life in the village 2 Keo optimized Keo optimized DarkRPG - RPG with Vampires, Dragons, Magic, Quests, Adventure DarkRPG - RPG with Vampires, Dragons, Magic, Quests, Adventure The Kingdom of Daldar - Forge Labs The Kingdom of Daldar - Forge Labs Parasites: Reloaded Parasites: Reloaded Create: Arcane Engineering Create: Arcane Engineering All the Mods 5 - ATM5 All the Mods 5 - ATM5 Ascendra Ascendra All the Mods 4 - ATM4 All the Mods 4 - ATM4 From the Fog Reimagined From the Fog Reimagined Crackpack 3 Crackpack 3 Beyond Ascension Beyond Ascension Cisco's Fantasy Medieval RPG [Lite] Cisco's Fantasy Medieval RPG [Lite] Cottage Witch Cottage Witch Slightly Flavoured Slightly Flavoured Infernal Origins Infernal Origins Valhelsia 5 Valhelsia 5 Age of Fate Age of Fate More FPS [FORGE] - Increase FPS & Shaders (1.21 UPDATE) More FPS [FORGE] - Increase FPS & Shaders (1.21 UPDATE) Dysfunctional's Tech, Bombs, Guns, and War Dysfunctional's Tech, Bombs, Guns, and War Essentials Mods [FORGE] - 1.21 RELEASE! Essentials Mods [FORGE] - 1.21 RELEASE! Omnicraft: Ben 10 [Alien Evo] Omnicraft: Ben 10 [Alien Evo] Beyond Cosmo Beyond Cosmo All the Mods 3 - Remix - ATM3R All the Mods 3 - Remix - ATM3R FTB Interactions FTB Interactions Cracker's Wither Storm Performance Cracker's Wither Storm Performance FXNT Create FXNT Create Verity virtual assistant (horror) Verity virtual assistant (horror) New Simple Mods - Easy to Understand | 1.21 UPDATE! New Simple Mods - Easy to Understand | 1.21 UPDATE! Avatar: 100 Days [Challenge] Avatar: 100 Days [Challenge] RogueLite Adventures and Dungeons RogueLite Adventures and Dungeons Stacia 2 Expert Stacia 2 Expert Prehistoric World Prehistoric World Monumental Experience Monumental Experience Enigmatica 2: Expert Skyblock - E2ES Enigmatica 2: Expert Skyblock - E2ES           AMP - Awakening Classic AMP - Awakening Classic Prodigium Reforged (Terraria Pack) Prodigium Reforged (Terraria Pack) Project Infinity 0.1 Project Infinity 0.1 Mystical Block Mystical Block More Animals [FORGE] - 1.21 UPDATE! More Animals [FORGE] - 1.21 UPDATE! Monifactory Monifactory Ragnamod V Ragnamod V Jurassic World Rebirth Jurassic World Rebirth Jurassic World Reborn II Jurassic World Reborn II GreedyCraft GreedyCraft Jujutsu Kaisen (Sorcery Fight) Jujutsu Kaisen (Sorcery Fight) SpaceCraft - (GalactiCraft) SpaceCraft - (GalactiCraft) Over Stars Over Stars Pixelmon Jenny Pixelmon Jenny Ultimate Lucky Oneblock Ultimate Lucky Oneblock CABIN: Create Above & Beyond In Newer CABIN: Create Above & Beyond In Newer TerraFirmaCraft Reloaded TerraFirmaCraft Reloaded

External Resources