

HotbarLock
HotbarLock is a lightweight, fully client-side Fabric mod that lets you lock individual hotbar slots to prevent accidental item movement.
Features
- Lock any hotbar slot (1–9) — locked slots cannot be clicked, swapped, or modified from the inventory
- Offhand swap protection — pressing your swap-to-offhand key on a locked slot does nothing
- In-game overlay GUI — a small draggable window in your inventory screen with checkboxes for each slot
- Hideable UI — the window is hidden by default, press
0to toggle it (rebindable inside the window) - Persistent config — your locked slots and hotkey are saved between sessions, worlds, and servers
- 100% client-side — no server-side installation required, works on any server
How to Use
- Open your inventory
- Press
0to show the HotbarLock window - Check the slots you want to lock
- That's it — those slots are now protected
Dependencies
If you like this mod, I'd really appreciate if you could star the GitHub repository. Thank you!
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 Modrinth — 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 hotbarlock-1.0.1.jar — drop this file into the mods folder
- Download size: 47 KB
- Download link checked 7 Sept 2026 — working
These come from our own check of the pack file, not from the source page.