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





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
- Install Fabric Loader 0.17.2+
- Install Fabric API 0.116.6+
- Download the mod JAR
- Place in
.minecraft/modsfolder - 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
How to Install LockItem-Fabric on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.1).
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
Minecraft Versions
1.21.1
Server-side
✗ UnsupportedRecommended 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.
Similar Mods
Rent Modded Server
Install LockItem-Fabric with just one click on your server.