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!
Would it be possible to implement a feature that prevents favourited items being moved out of your inventory unless you hold the override button while doing it?
For example, I have favourited items that I like to keep on my hotbar that I always accidently shift click into an inventory.
can u add a favorites system where u ca press a button and only that item is not droppable for example i have a lucky pufferfish i dont want to drop but i want to be able to drop other oufferfish
I would really appreciate it, if you update it to 1.18.2 :-)
In reply to krissymom:
i agree
In reply to krissymom:
oops I finally got around to doing this, should be up soon (currently under review)
Bug:
Pressing Q while typing in chat drops whatever item you're holding after you send the message.
In reply to Goobert_Froobert:
Oh, oops. Forgot to disable my "keybinds work in screens now" hack if you're typing in a textbox.
In reply to Goobert_Froobert:
v2.3.4 has been uploaded with a fix for this. You can get it from GitHub until it gets approved here.
Any updates on 1.18?
In reply to Ali_AraX:
Soon:tm:
In reply to ADudeCalledLeo:
Amazing! ty
In reply to Ali_AraX:
Surprise, Soon:tm: is now! 2.3.3 now supports 1.18 and 1.18.1('s prerelease).
In reply to ADudeCalledLeo:
Sick! I can finally use 1.18 client to join servers without worrying :D tysm
It doesn't save config for some reason. I tried editing config manually as well as changing it through mod menu, but when I reload the game it's all being thrown back to default(I'm trying to get rid off all of enchantments ID in the list). It seems like it's always creates a new config file, because if you rename it in any way - it'll create a new one, and if you don't - it rewrites the old one. Is there a way to fix this?
I'm using 1.16.5, Tlauncher, the version of the mod is 2.2.1
In reply to elnuir2:
TLauncher is not supported, sorry.
Is there a way to favorite a item with a keybind? If no, is it planned to be added in the future?
In reply to RevengeLordOfMagic:
No and no, sorry.
In the 1.17.1 version, there seems to be a bug that if you hit Q to drop an item while in your inventory then when you exit the inventory it will also drop that many items of whatever item is held by the player.
In reply to ethan_the_lolboy:
Please open an issue on the GitHub tracker for both this issue and your earlier feature request.
Would it be possible to add an option for drop delay on favorite items only? (Love the mod, thanks)