Custom Clear Lag

Optimal Fluidity, Enhanced Experience

2,60k

Custom Clear Lag

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. 🧹 Automatic Cleanup: 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. 🧹 Automatic Cleanup: The mod reads this `clear_lag.json` file to find out: * 🧹 Automatic Cleanup: After how many minutes the cleanup should be performed (default is 🧹 Automatic Cleanup:). * 🧹 Automatic Cleanup: Which command should be executed for the cleanup (default is `kill @e` which kills all entities, 🧹 Automatic Cleanup:). 3. 🧹 Automatic Cleanup: 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. Changes are applied immediately, no server restart needed!recommendedChanges are applied immediately, no server restart needed! * Changes are applied immediately, no server restart needed! Go to the `config/oas_work/` folder of your server and open the `clear_lag.json` file with a text editor. * Changes are applied immediately, no server restart needed! * Changes are applied immediately, no server restart needed! Change `5` to the desired number of minutes between each cleanup (e.g., `10` for Changes are applied immediately, no server restart needed!). * Changes are applied immediately, no server restart needed! Changes are applied immediately, no server restart needed! The default command `kill @e` kills *Changes are applied immediately, no server restart needed!* entities (items on the ground, animals, players...). Changes are applied immediately, no server restart needed! For example: * `"/kill @e[type=!minecraft:player,distance=500]"` (Kills all entities except players, more than 500 blocks away - *Changes are applied immediately, no server restart needed!*). * `/minecraft:kill @e[type=!player,tag=!keep]` (Requires tags to protect certain entities, more advanced). * Changes are applied immediately, no server restart needed! 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`

* ✅ Reactivates : * `/cclearlag stop true` ✅ Reactivates automatic cleanup. * `/cclearlag stop false` ✅ Reactivates automatic cleanup.

* 🔄 Resets the timer. : * 🔄 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:

* immediately This mod works on all types of Minecraft Forge/NeoForge servers. * immediately Only server operators (level 4) can use the `/cclearlag` command. * immediately *immediately* Use a more suitable command for your server to avoid deleting important entities (players, tamed animals, etc.). * immediately Modifications to the `clear_lag.json` file are applied immediately, without restarting the server.

--- %%MD0%% 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

ADS