This mod currently adds 2 systems to prevent accidental dropping of items:
- A drop delay system, which changes how item dropping works - the "drop" key now needs to be held down for a configurable amount of ticks.
- A favorites system, which allows specifying certain items that cannot be dropped without holding another modifier key. Items can currently be specified by their type, what enchantments they have and what tags they're in.
Each of these two systems can be enabled or disabled independently of each other.
Additionally, this mod also prevents dropping items from screens via:
- Clicking outside of the screen (favorite items by default).
- Closing the screen (all items by default).
This can be configured to include all items, only favorite items, or be disabled completely.
The mod can be configured using Mod Menu, or you can edit the configuration file manually at config/dontdropit.json5.
Since version 1.1.0, this mod will also allow you to rebind the "drop entire stack" modifier key (Left Control by default).
Since version 2.0.0: this mod comes bundled with Amecs API, which, among other improvements, allows multiple actions to be bound to the same key.
Old version stuff:
Since version 1.2.0, this mod comes bundled with Conflict in Harmony, which allows multiple actions to be bound to the same key. CiH is broken. Do not use 1.2.0 or 1.2.1.
1.2.2-1.3.1: This mod comes bundled with Amecs (API in 1.16), which, among other improvements, allows multiple actions to be bound to the same key.
1.4.0-1.4.2: It is heavily recommended you install Amecs alongside this mod.
This mod is entirely client-side, and doesn't need to be installed on the server to work (in fact, it does nothing on a server).