# 🚀 SGM Auto ClearLag (Anti-Lag System)
Keep your Minecraft Bedrock server or world running smoothly with **SGM ClearLag**! This lightweight, highly-optimized addon automatically sweeps away ground entities that cause lag, while strictly keeping your valuable gear safe.
---
## 🌟 Features:
* **🕒 Auto-Clear Cycle:** Every 1 minute, the addon automatically wipes dropped items and XP orbs from the ground across all dimensions (Overworld, Nether, and The End).
* **⚠️ Player Warnings:** Broadcasts a countdown warning to all players **10 seconds** before the clear occurs.
* **🛡️ Diamond & Netherite Protection:** Never lose your hard-earned gear! All diamond/netherite items, armor, and tools are completely ignored by the cleaning system and remain safely on the ground.
* **⚡ Admin Command:** Players with the `admin` tag can trigger an instant clean at any moment by typing `!clearlag` in the chat!
---
## 🛠️ How to Setup:
1. Apply the Behavior Pack to your world.
2. Enable the **Beta APIs** toggle under the **Experiments** settings of your world (Required for Script API).
3. To use the admin command, give yourself the tag in-game:
`/tag @s add admin`
4. Type `!clearlag` in the chat to clean up the world instantly!
---
*Developed with 💜 under the Purpleguy / SGM brand.*