Skip to content

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

License

Notifications You must be signed in to change notification settings

PixelIndieDev/LazyAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lazy AI

Lazy AI optimizes Minecraft’s AI calculations to improve 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.

Important

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

Warning

Lazy AI requires fabric api

Download

Performance difference

Vanilla performance

Vanilla performance

Lazy AI performance (using AIOptimizationType = Minimal)

Lazy AI performance (using AIOptimizationType = Minimal)

Lazy AI performance (using AIOptimizationType = Default)

Lazy AI performance (using AIOptimizationType = Default)

Lazy AI performance (using AIOptimizationType = Aggressive)

Lazy AI performance (using AIOptimizationType = Aggressive)

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

Lazy AI settings menu)

FAQ

Can this mod increase my TPS?

Yes, this mod can improve your TPS.

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.

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Languages