LockSlot

LockSlot

Prevents accidental drop of an item

3 556 downloads 2 followers

๐Ÿ”’ LockSlot

Protect important inventory slots and items from accidental drops.

LockSlot is a client-side Fabric mod for Minecraft 1.21.11 / 1.21.4. It can protect specific hotbar and inventory slots, or protect an item type wherever it appears in your inventory. No server installation is required.

โœจ Features

  • ๐Ÿ” Lock all 9 hotbar slots and all 27 main inventory slots individually.
  • ๐Ÿ›ก๏ธ Choose one of three slot protection modes:
    • block dropping only;
    • block dropping and Shift-click transfers;
    • fully lock interactions with the slot.
  • ๐Ÿ“‹ Maintain a separate list of protected item types that are not tied to particular slots.
  • ๐Ÿ”Ž Search for items using short names such as netherite_sword, with matching suggestions shown while typing.
  • โŒจ๏ธ Intentionally drop a protected item with Ctrl + Shift + Q.
  • ๐Ÿ–ฑ๏ธ Keep the inventory-window escape hatch: pick up an item and click outside the inventory to drop it.
  • ๐Ÿ”’ Choose between a lock icon, colored slot fill, or both.
  • ๐ŸŽจ Customize the highlight with an HSV color palette, fill intensity, icon opacity, border visibility, and border opacity.
  • โš™๏ธ Configure everything through Mod Menu and Cloth Config. The /lockslot command opens the same settings screen in-game.
  • ๐ŸŒ Full English and Russian localization.
  • ๐Ÿ’พ Automatically back up a damaged config/lockslot.json before restoring valid defaults.

๐Ÿงฉ Slot locks and protected items

๐Ÿ”’ Slot locks remain attached to the selected slot. Their behavior depends on the protection mode selected in the settings.

๐Ÿ›ก๏ธ Protected items are matched by item ID. They cannot be dropped accidentally with Q, regardless of which hotbar or inventory slot contains them, but they can still be moved normally.

โš™๏ธ Configuration

Open:

Mod Menu โ†’ LockSlot โ†’ Configure

You can also run:

/lockslot

When adding a protected item, enter its short name and select it from the suggestion list. The minecraft: namespace is optional for vanilla items:

diamond_sword
elytra
totem_of_undying

๐Ÿ“ฆ Requirements

  • โ›๏ธ Minecraft 1.21.11
  • ๐Ÿงต Fabric Loader 0.17.3 or newer
  • ๐Ÿงฐ Fabric API
  • ๐ŸŽ›๏ธ Cloth Config 21.11.153 or newer
  • โ˜• Java 21
  • ๐Ÿงญ Mod Menu 17.0.0 or newer is recommended

๐Ÿ“ฌ Support

For questions and bug reports: Telegram / Discord โ€” @b1nt1n

Version Minecraft Loader Download

LockSlot 1.2.3

1.2.3

1.21.11
fabric
Download

LockSlot 1.1.1

1.1.1

1.21.11
fabric
Download

LockSlot 1.1.0

1.1.0

1.21.4
fabric
Download

LockSlot 1.0.2

1.0.2

1.21.4
fabric
Download