
Modrinth · Minecraft mod
ItemLock
Press O to lock a hotbar slot in place so you can't accidentally drop or move that item during PvP fights.
Quick answer
Which ItemLock release matches Fabric?
ItemLock 1.9.0+1.21 targets 1.21, 1.21.1, 1.21.2 with Fabric, Quilt. It must be installed on the client. Do not install it on the dedicated server. All 1 required mods have matching files.
Where it goes
Is ItemLock required on the client, server, or both?
It must be installed on the client. Do not install it on the dedicated server.
This file is marked client-only.
What else does ItemLock 1.9.0+1.21 need?
1.9.0+1.21 on Fabric. Every mod below is checked against that same setup.
Install Fabric API first. We found matching files for this game-version and loader setup.
We only count dependency files that match this setup. A file for another loader does not fill the gap.
Before you install it
Add ItemLock without breaking your instance.
Built for ItemLock 1.9.0+1.21 on Fabric. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 1.9.0+1.21. It targets 1.21, 1.21.1, 1.21.2 with Fabric, Quilt; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
Install Fabric API first. We found matching files for this game-version and loader setup.
- 03
Put it on the correct side
It must be installed on the client. Do not install it on the dedicated server.
- 04
Pick the file you checked
Use the “Get this file” button beside 1.9.0+1.21. It opens that exact file at the source.
About this project
What does ItemLock add?
Preview
A small Minecraft mod that stops you from losing loot to a misclick mid-fight.

What it does
Press O while on a hotbar slot to lock it in place. While a slot is locked:
- Pressing Q (or Ctrl+Q) does nothing while that slot is selected - you can't accidentally drop the item.
- Clicking, dragging, shift-clicking, or number-key-swapping that item out of its slot is blocked in any inventory screen.
- Everything else in your inventory stays freely usable - you can still loot chests and reorganise other slots.
- A small lock icon appears in the bottom-right corner of the locked hotbar slot so you can see it's active at a glance, even after you switch away to a different slot.
You can lock several slots at once, and locked slots are remembered between sessions. The lock stays on its slot as you switch hotbar slots around it. Press O again while back on the locked slot to unlock it, or switch to a different slot and press O to move the lock there instead. An action-bar message confirms every lock/unlock.
The key is rebindable in Options -> Controls -> ItemLock if O clashes with something else.
This is a client-side mod - it works in singleplayer and on any multiplayer server, no server-side install required.
Requirements
Fabric / Quilt
- Minecraft 1.21 or 1.21.11 (pick the matching download)
- Fabric Loader >= 0.18.4 (or Quilt Loader, via its built-in Fabric compatibility layer)
- Fabric API (Quilted Fabric API on Quilt)
- Java 21
NeoForge
- Minecraft 1.21.11
- NeoForge >= 21.11.0-beta
- Java 21
Forge
- Minecraft 1.21.11
- Forge >= 1.21.11-61.0.0
- Java 21
License
CC0-1.0 - Do whatever you'd like with it.
Project description from Modrinth.
Pick your setup
ItemLock by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.21.11
4 loader builds1.21.10
3 loader builds1.21.9
3 loader builds1.21.8
3 loader builds1.21.7
3 loader builds1.21.6
3 loader builds1.21.5
3 loader builds1.21.4
2 loader builds1.21.3
3 loader builds1.21.2
2 loader builds1.21.1
4 loader builds1.21
2 loader buildsCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
ItemLock versions and loaders
1.9.0+1.21
ItemLock-1.9.0+1.21.jar
4 Aug 2026
1.9.0+1.21.9
ItemLock-1.9.0+1.21.9.jar
4 Aug 2026
1.9.0+1.21.6
ItemLock-1.9.0+1.21.6.jar
4 Aug 2026
1.9.0+1.21.11
ItemLock-1.9.0+1.21.11.jar
4 Aug 2026
1.8.3+1.21.9
ItemLock-1.8.3+1.21.9.jar
27 Jul 2026
1.8.3+1.21.6
ItemLock-1.8.3+1.21.6.jar
27 Jul 2026
1.8.3+1.21
ItemLock-1.8.3+1.21.jar
27 Jul 2026
1.8.3+1.21.11
ItemLock-1.8.3.jar
16 Jul 2026
Looking for an older file? The official Modrinth project page is in Resources.