Mob & World

Custom Mob AI

Reduces mob pathfinding calculations through NMS pathfinder injection. Mobs far from any player get the maximum reduction, mobs nearby keep their normal AI — players never see a frozen-looking mob.

  • Distance-based scaling — Reduction percentage interpolates with player distance
  • Speed reduction — Optional movement-speed multiplier (default 0.7×)
  • Spawner mobs — Mobs spawned from spawners get all AI removed
  • Disable player attacks — Optional toggle that prevents mobs from targeting players
  • Exclusion list — Bosses or quest mobs you want untouched

The pathfinder manipulation uses paperweight-userdev / NMS, so the first build of XAntiLag downloads and decompiles a Paper server bundle. Runtime cost is negligible — only the boot.

Villager Optimizer

Villager pathfinding is the #1 cause of lag on most servers. The optimizer disables AI awareness for villagers far from any player and restores it the moment a player approaches.

  • Distance threshold — Default 32 blocks
  • Periodic check — Efficient 5-second scan
  • Auto-restore — Full AI returns when a player gets close

Hopper Rate Limiter

Caps the number of item transfers per hopper per second. Massive sorting systems can no longer pin your TPS down by chaining hundreds of hoppers.

  • Per-hopper tracking — Each hopper is independent
  • Default cap8 transfers per second
  • Zero config — Works out of the box with sensible defaults

Entity Collision Limiter

Disables collision for non-player entities on spawn. The performance gain is significant in high-density mob farms — collision is one of the heaviest per-tick computations.

Player collision is unaffected — only mobs, items and projectiles get the toggle.

Anti-AFK

Detects idle players and applies a configurable set of restrictions to reduce their server cost.

  • Configurable timeout — Default 300s
  • Visual feedback — Blindness + Darkness applied to AFK players, plus a customizable AFK title
  • Per-player distances — Reduce view / simulation distance for AFK players to save resources
  • AFK teleport — Optionally teleport AFK players to a designated location
  • Activity detection — Resets on movement, interaction, chat, commands and inventory clicks

Farmland Optimizer

Counts crops per chunk (wheat, carrots, potatoes, beetroots, nether wart, sweet berries) and skips a configurable percentage of random tick growth events once the threshold is crossed.

  • Threshold — Default 64 crops per chunk
  • Skip rate — Configurable percentage of growth ticks to cancel
  • Early exit — Stops counting crops once the threshold is exceeded