Entity cleanup: ClearLag and LagAssist
Auto-cleaning items and mobs: setting intervals, exceptions, player warnings, and the harm from aggressive cleanup.
Updated August 13, 2026
Cleanup plugins remove dropped items and excess mobs on a timer. It's a workaround, but a necessary one on servers with high player counts.
Setup
auto-removal:
interval: 600
warnings: [60, 30, 10]
remove:
- ITEM
- ARROW
- EXPERIENCE_ORB
exclude:
- ARMOR_STAND
- ITEM_FRAME
- VILLAGER
Warnings are mandatory: deleting items without an announcement is perceived as theft.
What to always exclude
Armor stands, item frames, minecarts, boats, villagers, named mobs, pets. Otherwise in a month your decorations, transport and villager farms will be gone.
What not to do
- An interval shorter than 5 minutes: players don't have time to come back for their items.
- Deleting mobs indiscriminately: it breaks farms, and complaints are guaranteed.
- Using cleanup instead of configuring limits: the right order is spawn limits and item merging first, and only then cleanup — Mobs and entities.
LagAssist
It can do more than cleanup: it finds chunks with abnormal activity, shows a heatmap of the load and can limit redstone. It's useful as a diagnostic tool — but a profiler is more precise: Spark.
Checking the effect
Count entities before and after:
/paper entity list
If TPS hasn't changed after cleanup, the problem isn't items — Common causes of lag.
