SANDBOX — this is a test environment. No servers are actually deployed and no real payments are charged.
✓ VerifiedPerformance

LazyAI

by PixelIndieDev · for Minecraft

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

112KDownloads
11d agoLast updated
GPL-3.0-onlyLicense
FabricLoaders

About LazyAI

From Modrinth

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

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 (target: 50ms or lower per tick)_

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.

Why does the dynamic optimization mode not target below 50ms?

Minecraft runs on a 50ms tick cycle (20 TPS). If the (local) server processing finishes in under 50ms, the game waits for the remaining time. Consequently, any optimization below 50ms yields no increase in normal tick speed. The mod focuses on keeping tick times from exceeding 50ms, as higher values cause entities to move in slow motion. The heavier the (local) server load, the more aggressively the dynamic mode intervenes to maintain 50ms. When the (local) server runs smoothly, the mod scales back its intervention.

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.

How does the AI Optimization Type and Distance Scaling work?

See below ↓

Read the full description on Modrinth →

Highlights

From source data

Game versions

Supports 29 Minecraft versions, the newest being 26.3.

Loaders

Runs on Fabric.

Footprint

Rated a light load on a server.

What kind of mod it is

From the catalog
Listed on Modrinth as “Mods”

Performance

Makes the game or server run faster or lighter without changing how it plays.

Runs on your server

From source side support

Modrinth lists LazyAI as required on the server. Check its Modrinth page to see whether players need it too.

Compatibility

Game
Minecraft
Loaders
Fabric
Runs on
Serverrequired on the server
Game versions
26.3 and 28 earlier

Verified at the source

  • ✓ModrinthOfficial listing, checked 2026-10-01Open ↗
  • ✓AuthorPixelIndieDev, as published on Modrinth
  • ✓LicenseGPL-3.0-onlyFree

LazyAI, answered

Generated from the mod’s own source data.

Do my players need to install LazyAI?

Modrinth lists LazyAI as required on the server. Check its Modrinth page to see whether players need it too.

Which loaders does it support?

Fabric.

Is it free?

Yes. LazyAI is free to download from Modrinth. Its license is GPL-3.0-only.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run LazyAI on a Minecraft server.

Deploy in about a minute from $4.20 a month, then add LazyAI in one click.