# SmartDrop 🛡️♻️
**SmartDrop** is a lightweight, **100% client-side** Quality-of-Life mod for **Survival** and **PvP** that prevents accidental drops of valuable gear and keeps your inventory clutter-free—without requiring any server-side installation.
---
## ✨ Key Features
### 🔒 1. Inventory Slot Locking (`Alt + Left Click`)
* Hold **Alt** and **Left-Click** any slot in your hotbar or main inventory to lock or unlock it.
* Locked slots display a crisp **golden border and padlock icon**.
* Prevents accidental drops (`Q` / `Ctrl + Q`), clicks, shift-clicks, number-key swaps, offhand swaps (`F`), and double-click item collection.
* Locks are saved automatically per world/server (or globally via settings).
### ⚠️ 2. Smart Double-Tap `Q` Protection
* Automatically protects **Enchanted items**, **Netherite & Diamond gear**, **Totems of Undying**, **Elytras**, and **Shulker Boxes**—even if the slot is not manually locked.
* Pressing your drop key once cancels the drop locally, plays a subtle warning sound, and displays `"Press [Q] again to drop [Item]"` on your action bar.
* Press the drop key a second time within **1.2 seconds** to drop the item normally.
* Fully customizable protection tiers in the settings menu.
### ♻️ 3. Customizable Auto-Trash Filter (`Keep 1 Stack` & `Drop All`)
* Press **`I`** (rebindable) or click the **`♻` button** above your inventory to open the filter menu.
* Easily search and add junk items (such as *Dirt, Cobblestone, Gravel, Rotten Flesh*) or add the item currently in your hand with one click.
* Choose between two smart modes per item:
* **Drop All:** Automatically discards every picked-up stack of that item.
* **Keep 1 Stack:** Keeps up to **64 items (1 full stack)** in your inventory and automatically discards any excess.
* Never touches locked slots and automatically pauses while chests or containers are open.
---
## 🛡️ 100% Client-Side & Anti-Cheat Safe
* Works on **Singleplayer** and **any Multiplayer server** (Hypixel, DonutSMP, survival SMPs, and PvP servers) with zero server-side requirements.
* Uses a tick-throttled action queue (1 drop every 4 ticks) with standard vanilla inventory packets so it is completely safe with server anti-cheats.
---
## 📦 Requirements & Compatibility
* **Mod Loader:** Fabric
* **Supported Minecraft Versions:** `1.21.11`, `26.1`, `26.1.1`, `26.1.2`, `26.2`, `26.3`
* **Dependencies:** [Fabric API](https://modrinth.com/mod/fabric-api) (Optional: [Mod Menu](https://modrinth.com/mod/modmenu) for quick settings access)