All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Custom Clear Lag

Custom Clear Lag

by DreykaOas • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

Keep Your Minecraft Server Smooth! 🚀

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.

⚙️ How does it work?

The "Custom Clear Lag" mod works in the background on your server. Here are the key steps:

  1. 📝 Configuration: When the server starts for the first time with the mod installed, a configuration file named clear_lag.json is created in the config/oas_work/ folder.
  2. 📖 Reading the configuration file: The mod reads this clear_lag.json file to find out:
    • ⏱️ time: After how many minutes the cleanup should be performed (default is 5 minutes).
    • 💥 command: Which command should be executed for the cleanup (default is kill @e which kills all entities, be careful!).
  3. ⏳ Countdown: The mod counts the time elapsed in the game.
  4. 🧹 Automatic Cleanup: Once the configured time has elapsed, the mod executes the command defined in the configuration file. After the cleanup, the time counter is reset and starts again.

🎮 How to use it?

  1. 🛠️ Configuration (optional but recommended):

    • 📂 Locate the configuration file: Go to the config/oas_work/ folder of your server and open the clear_lag.json file with a text editor.
    • ✏️ Modify the settings:
      • "time": 5, Change 5 to the desired number of minutes between each cleanup (e.g., 10 for 10 minutes).
      • "command": "kill @e" ⚠️ VERY IMPORTANT: The default command kill @e kills ALL entities (items on the ground, animals, players...). You MUST change it to a more targeted cleanup command. For example:
        • "/kill @e[type=!minecraft:player,distance=500]" (Kills all entities except players, more than 500 blocks away - adapt to your server).
        • /minecraft:kill @e[type=!player,tag=!keep] (Requires tags to protect certain entities, more advanced).
    • 💾 Save the clear_lag.json file. 🔄 Changes are applied immediately, no server restart needed!
  2. 🕹️ In-game commands (for server operators):

    Open the server console or the in-game chat (if you are an operator) and use the command: /cclearlag

    • /cclearlag stop <true/false> :

      • /cclearlag stop true 🛑 Stops automatic cleanup.
      • /cclearlag stop false ✅ Reactivates automatic cleanup.
    • /cclearlag reset <true/false> or /cclearlag reset :

      • 🔄 Resets the timer. The countdown to the next cleanup will restart from zero. The true/false argument has no effect here, only reset matters.

📌 Important Points:

  • 🌐 Hosting Compatibility: This mod works on all types of Minecraft Forge/NeoForge servers.
  • 🔑 Permissions: Only server operators (level 4) can use the /cclearlag command.
  • ⚠️ Essential Configuration: Absolutely change the default kill @e command in clear_lag.json! Use a more suitable command for your server to avoid deleting important entities (players, tamed animals, etc.).
  • 🔄 Instant Changes: Modifications to the clear_lag.json file are applied immediately, without restarting the server.

📢 We're Recruiting French Speakers! Want to contribute to more awesome Minecraft mods and projects? We are looking for people who can speak French to join our team. For more information, please reach out via email: persodreykaoas@gmail.com

How to Install Custom Clear Lag (Mod)

Custom Clear Lag by DreykaOas is verified for Neoforge across Minecraft versions 1.20.4, 1.21.1, 1.21.4 (latest release: 1.1.0, file size: 70 KB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.20.4, 1.21.1, 1.21.4) and platform (Neoforge).
  2. Make sure you have the compatible loader or environment installed for Neoforge.
  3. Move the downloaded Custom Clear Lag file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.21.4
Neoforge
last yr. 1
1.21.4
Neoforge
last yr. 1
1.21.4
Neoforge
last yr. 1
1.21.1
Neoforge
last yr. 1
1.21.1
Neoforge
last yr. 1
1.21.1
Neoforge
last yr. 1
1.21.1
Neoforge
last yr. 1
1.21.1
Neoforge
last yr. 1
1.21.1
Neoforge
last yr. 1
1.21.1
Neoforge
last yr. 1
1.21.1
Neoforge
last yr. 1
1.21.1
Neoforge
last yr. 1
1.20.4
Neoforge
last yr. 1
[1.0.9] Custom Clear Lag 1.0.9 by DreykaOas on Mar 13, 2025
Download
.
[1.0.8] Custom Clear Lag 1.0.8 by DreykaOas on Feb 22, 2025
Download
1.21.4
# Changelog - Version 1.0.5-1
  • Date: November 14, 2024*

## Improvements
  • Reduced code to enhance performance and overall optimization of the application.

## Fixes
  • Fixed various bugs to ensure a more stable and reliable operation.

# Changelog

## 2024-11-12

  • Added new features.
  • Fixed minor bugs.
  • Improved performance.

[1.0.4] Custom Clear Lag 1.0.4 by DreykaOas on Nov 11, 2024
Download
# Changelog - Version 1.0.4 (November 11, 2024)

## Bug Fixes
  • Minor bug fixes for improved overall stability of the mod.

# Changelog

## [10-11-2024]
### Fixes
  • Bug fixes to improve stability and performance.

JUST BETTER
# Changelog

## 08/11/2024

  • Minor bug fix

# Changelog

## 0.0.3-2

### Changes
  • Minor bug fix

[0.0.3] Custom Clear Lag 0.0.3 by DreykaOas on Nov 05, 2024
Download
# Changelog

### User Interface Optimization

  • Improved UI performance and smoothness.
  • Reduced loading times.
  • Fixed various display bugs.

[0.0.2] Custom Clear Lag by DreykaOas on Sep 28, 2024
Download
New Update
[0.0.1] Custom Clear Lag 0.0.1 by DreykaOas on Apr 26, 2024
Download
Version 1.0.0

Added a configuration option to disable the removal of specific items.
Improved mod performance in worlds with many entities.

Custom Clear Lag Icon
Download Custom Clear Lag
Select game version
Select platform