Auto Leave
by b1nt1n
Auto Leave is a Fabric client mod that disconnects the player from a server once the inventory holds a set number of chosen valuable items.
What it does
When the target count of listed items is reached, the client runs a configured command such as a hub or spawn warp, then closes the connection. The trigger is a pickupTarget value: once that many valuable items are collected, the escape sequence starts. Item IDs such as minecraft:nether_star or minecraft:diamond go into the valuableItemIds list, so the check ignores everything else in the inventory.
A configurable delay in milliseconds runs before the disconnect, which gives the server time to register the last pickup and helps avoid rollbacks. The settings screen can be opened in-game and lets a player choose items from a list rather than editing files. Builds exist for 1.21.4 and 1.21.11, with 1.1.0 for 1.21.11 as the latest file. No required dependency is listed for Fabric. The mod is released under the MIT License, and it is not open source.
Key features
Item-count trigger
The escape starts once the set number of chosen items is picked up, so grabbed loot is kept.
Automatic command on exit
A chosen command, such as one that moves the player to a hub or spawn, runs just before the disconnect.
Custom delay
An extra delay in milliseconds can be set before the disconnect, so the server registers the last pickup.
In-game settings menu
A settings screen lets the player pick valuable items from a list without editing configuration files.
Gallery
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Use cases
High-risk grinding
Players who farm in contested or anarchy-style areas can leave as soon as their target loot is collected.
Who it’s for: Players on multiplayer servers where item loss or a sudden grab-and-leave pattern matters, and who want an automatic exit once their haul is complete.
How it compares
PetalDisconnect is a client-side Fabric mod for 1.21.10 under All rights reserved, and it is not open source. AfkDisconnect is also client-side only, for 1.21.11, with All rights reserved and not open source. SmartLootFilter is a client-side Fabric mod for 1.21.11 under the MIT License, and it is not open source, which makes it the closest in license to this mod. Auto Leave targets 1.21.4 and 1.21.11 and is also client-side only.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Auto Leave | Fabric | 1.21.4 – 1.21.11 | Client-side only | 2026-07-04 |
| PetalDisconnect | Fabric | 1.21.10 | Client-side only | 2025-11-18 |
| AfkDisconnect | Fabric | 1.21.11 | Client-side only | 2026-01-30 |
| SmartLootFilter | Fabric | 1.21.11 | Client-side only | 2026-05-01 |
Questions
Does Auto Leave need Fabric API?
Does the server need Auto Leave installed?
Which game versions have files?
In the catalog
Auto Leave is one of 2,072 Economy mods on ModsFinder, and one of 1,159 Economy mods for Fabric. 19,862 mods support Minecraft 1.21.11.
More from b1nt1n
Similar mods
What the author says
📩 For questions and bug reports: Telegram / Discord — @b1nt1n
Official listing
- Modrinth page
- modrinth.com/mod/auto-leave
- Owner
- b1nt1n
- Published
- 2026-07-03
- Updated on Modrinth
- 2026-07-04
- Facts verified
- 2026-10-15
