Custom Clear Lag
by DreykaOas
Custom Clear Lag is a NeoForge optimization mod that removes entities from a Minecraft server on a timer, so lag from piled-up items and mobs is cut down.
What it does
Once the configured interval passes, the mod runs a cleanup command set in the clear lag configuration file. The default interval is 5 minutes and the default command is kill @e, which removes entities, so the setting should be checked before use. After each cleanup the timer resets and begins counting again. The timer can be enabled or disabled with a command, and the configuration is optional but recommended.
The mod works in the background on the server and automatically cleans up entities at regular intervals to keep the server running smoothly. Installation requires NeoForge only. Custom Clear Lag is open source under the Apache License 2.0 and is published for 1.20.4 – 1.21.4, with 1.1.0 as the latest file for 1.21.4. Installation covers the server and each player's game.
Key features
Automatic cleanup
Entities are removed on a timer, so the server does not accumulate them between manual cleanups.
Configurable interval
The time between cleanups is set in the configuration file, with 5 minutes as the default.
Configurable command
The command run at each cleanup can be changed in the configuration, and the default kills entities, so it needs care.
Timer control command
An operator can enable or disable the reset timer with a command while the server runs.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Use cases
Who it’s for: Server owners who run survival or multiplayer worlds where dropped items and mobs build up and slow the server. Operators who want cleanup on a fixed schedule rather than by hand.
How it compares
CleanMaid is server-side only, open source under the MIT License and published for 1.21.1, so players can join without installing it. Fix Attack Lag is a NeoForge and Forge mod with files for 1.20.1 – 1.21.1, and only the server needs it while players may add it, and it is not open source. No Performance Only Lag is a client and server mod for NeoForge on 1.21.1 under All rights reserved, which is not open source.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Custom Clear Lag | NeoForge | 1.20.4 – 1.21.4 | Client and server | 2025-03-17 |
| CleanMaid | NeoForge | 1.21.1 | Server-side only | 2026-04-27 |
| Fix Attack Lag | Forge and NeoForge | 1.20.1 – 1.21.1 | Server required, client optional | 2026-03-18 |
| No Performance Only Lag | NeoForge | 1.21.1 | Client and server | 2025-01-11 |
Questions
Does Custom Clear Lag need to be installed on both sides?
How is the cleanup interval changed?
Can the timer be turned off while the server runs?
In the catalog
Custom Clear Lag is one of 3,545 Optimization mods on ModsFinder, and one of 1,250 Optimization mods for NeoForge. 17,979 mods support Minecraft 1.21.4.
More from DreykaOas
Similar mods
What the author says
This mod automatically cleans up entities on your Minecraft server to prevent lag. It does this at regular intervals that you can configure. You can also enable/disable and reset the timer with a command. Open the server console or the in-game chat (if you are an operator) and use the command: /cclearlag
Official listing
- Modrinth page
- modrinth.com/mod/custom-clear-lag
- Owner
- DreykaOas
- Published
- 2024-04-26
- Updated on Modrinth
- 2025-03-17
- Facts verified
- 2026-10-15
