ClearLag Pro
Professional ClearLag addon, performance-focused for Minecraft Bedrock servers.
Description
ClearLag Pro
A professional ClearLag addon, performance-focused for Minecraft Bedrock servers.
It automatically clears dropped items on a schedule, warns players before each clean, and protects valuable items. All settings are changed in-game. No file editing is needed.
Version: 1.0.0 · Author: @dyan1619 · License: All rights reserved. Copying and redistribution are prohibited.
How to open the menu
There are two ways to open the menu:
Option 1: Use the item
Give yourself the admin tag:
/tag @s add adminHold String and right-click to open the menu.
Option 2: Use a command
- Type
/scriptevent clearlag:menu(requires OP).
In the menu, choose Settings to change the cleaning interval, warnings and protection. Choose Trash types to clear to select which trash types are cleaned.
Features
Automatic cleaning on a schedule you choose, with a countdown.
Advance warnings at any number of custom times (for example 15 seconds and 5 seconds).
Valuables whitelist: gold, iron, lapis, emerald, diamond and many other items are never cleaned. You can add or remove items.
Player protection: items near players can be kept safe (can be turned off).
Two cleaning modes: clean by a trash type list, or clean items only.
Clean now with confirmation and countdown, or Count trash to preview without deleting anything.
Statistics for the number of items and entities removed.
Warning sound with five presets, or enter any sound ID you like.
Custom messages and a chat prefix.
No server freezes: cleaning is split into small batches.
Safe data: settings and the whitelist are saved in the world, with backups.
Requirements
Minecraft Bedrock Edition 1.26 or later.
The Beta APIs experiment enabled in the world settings.
> ⚠️ Important:> enabling the > Beta APIs> experiment will disable achievements for that world. If you need to keep achievements, use a separate world for your server.
Installation
Open
ClearLag\_Pro\_1.0.0.mcaddonto import it into Minecraft.In the world settings, enable Beta APIs under Experiments.
Apply the addon to your world, then restart.
Server installation (BDS and Endstone)
These steps apply to Bedrock Dedicated Server (BDS) and Endstone.
Create a folder named
ClearLag\_Proinsidebehavior\_packs/at the server root. PutClearLag\_Pro\_1.0.0.mcaddonin that folder and extract it there. Themanifest.jsonfile must end up directly insideClearLag\_Pro/.Register the pack for your world. Open
worlds/\<world name\>/world\_behavior\_packs.json(create it if it does not exist) and add:
[
{
"pack_id": "386ffb48-adf3-460c-81ee-97cda197edea",
"version": [1, 0, 0]
}
]
If the file already has a pack list, add a new entry inside the array. Do not overwrite the whole file.
- Enable Beta APIs for the world. If it is already enabled, skip this step. If not, back up the world first.
Download the world from the server to your computer.
Open it in Minecraft, go to Edit World > Experiments, turn on Beta APIs, and save.
Upload the updated world back to the server.
- Restart the server. The log will show
ClearLag Pro (version: 1.0.0).
> ⚠️> Enabling Beta APIs will disable achievements for that world.
Chat commands
Use /scriptevent clearlag:\<command\>:
| Command | Description |
|---|---|
help |
List the commands |
menu |
Open the admin menu |
clean |
Clean now (with warning) |
scan |
Count trash, deletes nothing |
stats |
Show statistics |
reload |
Reload settings and the whitelist |
Note: chat commands require > OP> permission. Opening the menu with the item requires the
> admin> tag.
Default settings
| Setting | Default |
|---|---|
| Time between cleans | 10 minutes |
| Warnings before a clean | 15 seconds and 5 seconds |
| Player protection radius | Off |
| Cleaning mode | Trash type list |
| Warning sound | Chime (note.pling) |
| Menu item | String (minecraft:string) |
| Admin tag | admin |
Troubleshooting
The addon does not run: check that Beta APIs is enabled in the world, then restart. On a server, if the log says
requesting dependency on beta APIs ... not enabled, the world does not have Beta APIs enabled.The server does not find the pack: check that
pack\_idandversioninworld\_behavior\_packs.jsonmatch the manifest. Also check thatmanifest.jsonis directly inside the addon folder and not nested one level deeper.The menu does not open with the item: check that you have the
admintag and are holding the correct item. Otherwise, use/scriptevent clearlag:menu(requires OP).Valuable items are being cleaned: check that the item is in the whitelist. Only items are protected by the whitelist.
Author: @dyan1619 Version: 1.0.0 License: All rights reserved. Copying and redistribution are prohibited.