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).
Note: Please use the GitHub issue tracker (linked above) to report bugs or request features!
In reply to The_Cosmic_Cow:
that's a lot of mods
Will you be releasing a forge compatible version?
In reply to cmnybo:
I'll consider it when Forge adds first-party support for Mixins (MixinBoostrap doesn't count).edit: see later replyIn reply to cmnybo:
With all due respect, no. Beyond the fact that this mod relies on Mixins, which A) Forge doesn't have first-party support for (MixinBootstrap does not count) and B) is heavily against coremodding these days, there is a lot of drama in the Forge community about Fabric in general and I do not wish to be involved in that.
I apologize for the inconvenience.
Great Mod, underated, you can configure everything from the ticks it takes to drop something, to whitelisting / blacklisting items! Probably should say Mod Menu is required if you want to configure mod though!
In reply to JosTheDude123:
Mod Menu is pretty much a "must have" for anyone using Fabric mods, so I figured adding it to the description wouldn't be necessary.
I am not finding how to configure the no drop delay for subsequent items of a stack can you help?
In reply to calloatti:
Mod Menu "Configure" Button -> Drop Delay -> Do Delay Once per Stack
In reply to Forge_User_43595715:
Thank you. I was an idiot still using the old version. Well, not 100% my fault, CF takes its sweet time to update the API data.