ModsJava
Slot Lock
The author built this one for Minecraft 1.21.11 on Fabric. On other versions it may install and then do nothing.

This simple mod allows you to lock any inventory slot by pressing a key to avoid accidentally dropping your sword, moving specific items into containers, equipping the wrong piece of armor, etc. Simply hover your mouse over a slot you want to lock and press the hotkey. Also works with selected hotbar slots.
The hotkey is configurable in Options -> Controls -> Key Binds -> Inventory -> Toggle Slot Lock
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.21.11
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on CurseForge — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
Verified by MCModsHub
- Ships as slotlock-1.0.1.jar — drop this file into the mods folder
- Download size: 16 KB
- Download link checked 13 Sept 2026 — working
These come from our own check of the pack file, not from the source page.