Lock Slot
by cactoz
Lock Slot lets players lock individual hotbar slots so that items in them cannot be dropped, swapped or moved out of the inventory.
What it does
Pressing L on a hotbar slot toggles its lock, and the lock can be rebound in the settings. A locked slot ignores the Q and Ctrl+Q drop keys, the F key that swaps items into the offhand, shift-clicks, number-key swaps and inventory drags, so the item stays where it was put. A gold-bordered L marks each locked slot, and the corner where the marker appears can be changed.
The mod runs on the client alone, so only the player needs it installed and a server does not. It requires Cloth Config API, Fabric API and Mod Menu. Settings are stored in lockslot.json and can be edited by hand or changed in the in-game GUI. Lock Slot is open source under the MIT License and is published for Fabric only, for 26.2.
Key features
Hotbar slot locks
Each hotbar slot can be locked on its own, with L as the default toggle for the selected slot.
Blocked drops and swaps
Locked slots ignore the drop keys, the offhand swap key and number-key swaps, so the item stays in place.
Blocked inventory moves
Shift-clicks, drags and other moves cannot take an item out of a locked slot.
Visible lock marker
A gold-bordered L shows which slots are locked, and its corner position is configurable.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 3
Use cases
Protecting a tool slot
A player who keeps a pickaxe or food in a fixed hotbar position can lock that slot so a stray key press does not move it.
Who it’s for: Players who keep specific items in fixed hotbar positions and want to avoid losing them to accidental key presses.
How it compares
Slot Lock is also a Fabric, client-side only mod under the MIT License, but it covers 1.21.11 – 26.1, so it does not reach 26.2. Lock Slot is the Fabric, client-side only option for 26.2. PickyMiner is a Fabric, client-side only mod under the MIT License for 26.1.2 – 26.2, which overlaps the version range of Lock Slot without being a slot lock.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Lock Slot | Fabric | 26.2 | Client-side only | 2026-07-15 |
| Slot Lock | Fabric | 1.21.11 – 26.1 | Client-side only | 2026-03-31 |
| PickyMiner | Fabric | 26.1.2 – 26.2 | Client-side only | 2026-06-30 |
Questions
Does Lock Slot need to be installed on the server?
What does Lock Slot require?
Can the key that locks a slot be changed?
In the catalog
Lock Slot is one of 36,990 Utility mods on ModsFinder, and one of 25,772 Utility mods for Fabric. 13,894 mods support Minecraft 26.2.
More from cactoz
Similar mods
What the author says
Lock individual hotbar slots — prevent dropping, or swapping items from locked slots. Client-side only, no server install needed. Settings are saved to /lockslot.json and can be changed in-game via the GUI or by editing the file directly.
Official listing
- Modrinth page
- modrinth.com/mod/lock-slot
- Owner
- cactoz
- Published
- 2026-07-15
- Updated on Modrinth
- 2026-07-15
- Facts verified
- 2026-10-15
