LockItem-Fabric

LockItem-Fabric

A client-side Fabric mod for Minecraft 1.21.1 that prevents accidental drops of hotbar items.

by
377 Downloads
fabricequipmentmanagementstorage
Rent Server with this Mod

Screenshots

Locked Mechanic
Unlock Mechanic
Pressing Q or removal from inventory while locked
Item Frame placement disabled when locked
Inventory view

About this Mod

Item Lock Mod

A client-side Fabric mod for Minecraft 1.21.1 that prevents accidental drops of hotbar items.

Features

  • 🔒 Lock hotbar items (slots 1-9) to prevent dropping
  • 💾 Persistent locks (saved between game sessions)
  • 🎨 Visual lock indicator on items
  • ⌨️ Quick toggle with keybind (default: L)
  • 💬 Command-based control system
  • ✅ Works with vanilla, modded, and custom server items
  • 🎮 Compatible with Cobblemon and other mods

Commands

All commands are client-side only:

/lockitem lock              - Lock currently held item
/lockitem lock <1-9>        - Lock specific hotbar slot
/lockitem unlock            - Unlock currently held item
/lockitem unlock <1-9>      - Unlock specific hotbar slot
/lockitem toggle            - Toggle lock on held item
/lockitem list              - List all locked slots
/lockitem clear             - Unlock all items
/lockitem help              - Show help message

Keybind

  • L - Quick toggle lock on currently held item

Installation

  1. Install Fabric Loader 0.17.2+
  2. Install Fabric API 0.116.6+
  3. Download the mod JAR
  4. Place in .minecraft/mods folder
  5. Launch Minecraft 1.21.1

Configuration

Config file location: .minecraft/config/itemlock.json

The config automatically saves locked slots and will restore them on next launch.

How It Works

  • Locks are slot-based (hotbar slots 0-8)
  • Item fingerprint validation prevents accidental drops if items swap
  • Drop attempts are blocked at the client level
  • Visual indicators: 🔒 emoji overlay and tooltip
  • Compatible with custom NBT items from servers

Available Versions

LockItem-Fabric 1.0.0release
MC 1.21.1fabric
October 31, 2025

How to Install LockItem-Fabric on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.1).

3

Install Mod

Open the mod browser in the dashboard and search for "LockItem-Fabric". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabric

Minecraft Versions

1.21.1

Server-side

Unsupported

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

LockItem-Fabric server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.1). You can switch loaders with one click in the panel.

Is LockItem-Fabric compatible with fabric?

LockItem-Fabric officially supports fabric for Minecraft 1.21.1. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with LockItem-Fabric – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if LockItem-Fabric consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install LockItem-Fabric with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Unsupported

Supported Versions

1.21.1