Compatibility
Minecraft: Java Edition
1.21.11
1.21.4
Platforms
Supported environments
Client-side
Tags
Creators
Details
📌 LeaveGuard (Auto Leave)
A smart, automated safeguard for your valuable loot. Instantly escapes to the hub or disconnects from the server the moment you collect your targeted rare items!
✨ Features
- 🎯 Target Collection — Specify exactly which valuable items (and how many of them) you want to trigger the escape sequence.
- ⚡ Instant Escape — Automatically runs a command (e.g.,
/hub,/spawn) or forcefully disconnects from the server as soon as the target item is safely in your inventory. - ⏱️ Custom Delays — Add a customizable extra delay (in milliseconds) before escaping to ensure the server has fully registered the item pickup and avoid rollbacks.
- 🖥️ Interactive Settings — A clean, easy-to-use in-game configuration menu to quickly select your valuable items from a list of everything in the game.
- 🛡️ Safe Grinding — Perfect for anarchy servers or high-risk areas. Grab the loot and vanish before anyone can stop you!
⚙️ How it works
The mod constantly monitors your inventory. You simply select a list of "valuable" items in the settings and set a required quantity. The moment you pick up those items and reach the required amount, the mod waits for your specified delay (to guarantee server sync) and then immediately triggers the escape action, pulling you out of danger.
🛠️ Configuration & Commands
- Config: Fully integrated with ModMenu for easy in-game setup. You can also edit
config/leaveguard.jsondirectly.- Choose your
valuableItemIds(e.g.,minecraft:nether_star,minecraft:diamond). - Set
pickupTarget(how many items you need to trigger the escape). - Adjust
extraDelayMs(delay before escaping, useful for ping compensation). - Change
action(COMMANDorDISCONNECT). - Set your custom
command(like/hubor/home).
- Choose your
🚀 Installation
- Install Fabric Loader for Minecraft 1.21.4 or 1.21.11.
- Install the necessary dependencies:
- Fabric API
- ModMenu (optional, but highly recommended for the config screen)
📩 For questions and bug reports: Telegram / Discord — @b1nt1n


