MineFixTools server utility lab
Optimization 2 min read Updated

Entity Lag Explained

Understand Minecraft entity lag from mobs, villagers, items, armor stands, pathfinding, collisions, farms, and how to reduce tick cost safely.

Entities are things that exist and update in the world: mobs, villagers, items, projectiles, minecarts, armor stands, display entities, boats, and more. Entity lag happens when the server spends too much tick time updating them.

Why Entities Cost Tick Time

| Entity behavior | Why it matters | | --- | --- | | AI and pathfinding | Mobs and villagers search for goals and paths | | Collisions | Crowded entities check nearby objects | | Item movement | Items merge, despawn, and move through hoppers | | Projectiles | Arrows and tridents update movement and collisions | | Tracking | Server sends entity updates to nearby players |

One cow is not a problem. Hundreds of mobs in cramped spaces, villagers searching for workstations, or item piles constantly feeding hoppers can become a real tick cost.

Signs of Entity Lag

Suspect entity lag when:

  1. TPS drops near farms or trading halls.
  2. Spark shows entity tick paths.
  3. Mobs freeze before blocks or chat delay.
  4. Lag improves when players leave a specific area.
  5. Entity counts rise over time after restarts.

Use Spark during the lag window. A screenshot of /kill counts is not enough; you need to know which entities are expensive and where.

Safer Fixes

Start with the hotspot, not the whole server.

| Situation | Safer action | | --- | --- | | Item piles | Fix collection, add overflow handling, reduce drops | | Villager halls | Reduce villagers, simplify POI access, split halls | | Mob farms | Add kill switches, improve flushing, avoid spawn chunks | | Armor stands | Limit decorative counts in public areas | | Projectiles | Check combat arenas and plugins that spawn effects |

Avoid deleting all entities every few minutes. It can hide broken farms while hurting normal gameplay.

Config Areas to Review

On Paper and related servers, review entity activation ranges, despawn ranges, mob spawning rules, item despawn behavior, and per-world overrides. Do not copy a random "optimized" config without understanding it. Some aggressive settings break farms, villagers, raids, and map behavior.

Continue with mob spawning optimization, villager optimization, and hopper optimization depending on the profile.

FAQ

Are all entities bad for performance?

No. Entity cost depends on count, behavior, collisions, AI, pathfinding, and how often they tick.

Should I clear all entities to fix lag?

Only as an emergency action with clear rules. Routine entity clearing can delete pets, farms, dropped items, and evidence.

Which entities are usually expensive?

Villagers, mobs with AI, item piles, projectiles, armor stands, display entities, and large farm clusters are common suspects.

Related Tools

Related Articles