Don't Drop It

Don't Drop It is a 1.15.2, 1.16.4 & 1.17.1 mod for Fabric.

The mod focuses on preventing dropping of tools if due to a slip of a keypress.

Two systems exist the player can use. The first is a drop delay system which also for the drop key to be held down rather than requiring a press. Tick amount can be changed via a config file.

The second system is a favourites system which allows players to lock/favourite items that cannot be dropped without holding another key down. Items can be specific by type, enchantments and tags.

Both system can be enabled or disabled independently. The mod also allows players to prevent dropping of items when it comes to closing the screen or clicking outside of the screen to view something outside of the game.

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: Spoiler (click to hide)

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).