Back to mods
LazyAI project artwork

Modrinth · Minecraft mod

LazyAI

Optimizes Minecraft mob AI by scaling calculations based on distance to players, improving performance with as minimal gameplay impact as possible

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

Quick answer

Which LazyAI release should I use?

Updated last month
Latest stable file 1.6.1
Game version 26.2
Loader Fabric

LazyAI 1.6.1 targets 26.2 with Fabric. Do not install it on the client. It must be installed on the dedicated server. All 1 required mods have matching files.

Where it goes

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

Do not install it on the client. It must be installed on the dedicated server.

Client Not supported
Dedicated server Required
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

This file is marked server-only.

What else does LazyAI 1.6.1 need?

1.6.1. Change the file and its required mods may change too.

All 1 required mods have matching files

Install Fabric API first. We found matching files for this game-version and loader setup. 3 come through another mod in the chain.

2 listed on this file 3 pulled in by those mods
Mod Menu Optional for LazyAI 1.6.1
optional
Matching file found Matched file: v20.0.1 for 26.2
Fabric API Needed by LazyAI 1.6.1
required
Matching file found Matched file: 0.156.0+26.2
Fabric API Needed by Mod Menu
pulled in
Matching file found Matched file: [26.2] Fabric API 0.156.0+26.2
Text Placeholder API Needed by Mod Menu
pulled in
Matching file found Matched file: placeholder-api-3.1.0-beta.1+26.2.jar
Text Placeholder API Needed by Mod Menu
pulled in
Matching file found Matched file: 3.1.0-beta.1+26.2

3 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 LazyAI without breaking your instance.

Built for LazyAI 1.6.1. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.6.1. It targets 26.2 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fabric API first. We found matching files for this game-version and loader setup. 3 come through another mod in the chain.

  3. 03

    Put it on the correct side

    Do not install it on the client. It must be installed on the dedicated server.

  4. 04

    Pick the file you checked

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

About this project

What does LazyAI add?

Overview

Lazy AI dynamically reduces the frequency and precision of mob AI calculations based on their distance from players. Mobs close to players behave normally, while those farther away update their goals, pathfinding, and other goals less often. This ensures smoother performance, especially in mob-heavy worlds.

Lazy AI bases its distance calculations of the simulation distance * distance scaling of your game

Performance difference

Lower ms -> better

Vanilla performance

Vanilla performance

Lazy AI performance

Using AI Optimization Type 'Dynamic' will dynamically switch between the three optimization modes based on TPS

Minimal Moderate Agressive
Lazy AI performance (using AIOptimizationType = Minimal) Lazy AI performance (using AIOptimizationType = Moderate) Lazy AI performance (using AIOptimizationType = Aggressive)

Comparison of Vanilla and LazyAI

TPS comparison in a mob crowded test world

Average world TPS test image

TPS comparison in a giant villager trading hall

Villager trading hall test image

Features

  • Distance-based AI scaling | Reduces AI updates for mobs that are far from players
  • Pathfinding optimization | Simplifies A* path calculations at long distances
  • Reduced goal frequency | Look, wander, and tempt goals run less often when distant
  • Configurable behavior | Easily balance performance and gameplay through a simple config accessible through mod menu
  • Server-wide improvement | Decreases tick load even on servers

Settings

  • AI Optimization Type | This settings controls how aggressive the optimizations should be
  • Distance Scaling | This setting controls what % range of your simulation distance is considered close and far range
  • Mob Tempting Delay | This setting controls how much delay animals have to being tempted by an item
  • Disable Zombie Egg Stomping | This setting controls the prevention of zombies wanting to destroy turtle eggs
  • Enable Vanilla Mob Ticking (Previously: Never Slow Down Distant Mobs) | This setting controls if distant mobs should tick the same as in a unmodded (vanilla) game. Enabling this reduces the mod's TPS-boosting effect on your game, but can fix mob ticking issues.
Lazy AI settings menu

FAQ

Can this mod increase my TPS?

Yes, this mod can improve your TPS.

Can this mod increase my FPS?

No, this mod cannot improve your FPS.

Does this mod affect mob farms?

Short awnser: Yes, but only a little bit.

Long awnser: Yes, LazyAI does affect mob farm efficiency, but the throughput impact is minimal. In testing with my iron golem farm, vanilla Minecraft yielded 1023 iron ingots, while with the LazyAI on the aggressive setting yielded 979 iron ingots. That's a difference of ~4.5%.

A few things worth noting:

  • This was tested on the aggressive setting, which has the most impact. Using a less aggressive setting will reduce that gap further.
  • A ~4.5% decrease is unlikely to be noticeable in normal gameplay.
  • Results may vary depending on farm design and server performance.
  • The testing were done on LazyAI version 1.6.0.

In practice, you won't notice the mob farm efficiency decrease.

What modloader do I need?

You need Fabric

I installed the mod, but didn't see as much difference?

The preview images are taken in a stress test situation. It can also be because your simulation distance or this mods distance scaling is set too high for your use case.

Where is the config located?

.minecraft/config/lazy-ai.json

Can this mod be used on a server?

Yes, you can use this mod on a server. The mod works on both the server and the client. Vanilla clients can join a server using LazyAI.

Can this mod be used on a client?

Yes, you can use this mod on a client. The mod works on both the server and the client. Clients with LazyAI can join servers without LazyAI.

Project description from Modrinth.

Pick your setup

LazyAI by Minecraft version and loader

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

28 available setups

Showing the newest 12 of 28 game versions. Older files are in the list below.

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

Recent files

LazyAI versions and loaders

70 of 70 releases match

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