AI Pathfinding Lag

TPS drops because mobs are spending excessive time on pathfinding. Large numbers of mobs, or mobs trying to reach unreachable targets, make the AI recalculate paths constantly.

Какво означава тази грешка?
Mobs use pathfinding to navigate, an expensive calculation. 'Excessive pathfinding' means too many path computations per tick, usually from crowded mobs or mobs endlessly retrying an impossible route, which eats the tick budget.
Excessive pathfinding
Най-чести причини
  • Too many mobs concentrated in one area (farms).
  • Mobs pathing toward unreachable targets repeatedly.
  • Villagers trying to reach blocked workstations/beds.
  • Complex terrain forcing heavy path searches.
  • A mod adding pathing-heavy AI.
Как да диагностицирате
  1. Use spark to attribute tick time to pathfinding/AI.
  2. Locate dense mob clusters.
  3. Look for mobs/villagers stuck against obstacles.
  4. Note any AI-heavy mod in the profile.
Препоръчани решения
  • Reduce mob density
    Cap farms and lower mob counts so fewer entities path at once.
  • Remove impossible targets
    Fix layouts so mobs/villagers are not endlessly pathing to blocked spots.
  • Tune AI on Paper
    Use Paper's mob AI/activation-range settings to cut needless pathing.
  • Simplify problem areas
    Smooth terrain or reposition workstations to ease pathfinding.
Често задавани въпроси

It searches many possible routes each time, multiplied across many mobs, it adds up fast.

Yes, villagers repeatedly pathing to unreachable beds/jobs are a common cause.

Yes, activation ranges and AI tuning reduce how often distant mobs run pathfinding.