Skip to content

ItemLock

Press O to lock a hotbar slot in place so you can't accidentally drop or move that item during PvP fights.

FabricNeoForgeForgeQuilt
Loaders
FabricNeoForgeForgeQuilt
Downloads on Modrinth
5.2K
Followers on Modrinth
1
versions
15
Updated
August 17, 2026Aug 17
Published
in 2026
Example of the mod · swipe

At a glance

Runs on Fabric, NeoForge, Forge and Quilt
For Minecraft 1.21–1.21.11
Client only — no need to install it on the server
Latest version — 1.9.2+forge-1.21.1 from August 17, 2026
License CC0-1.0 — free
Where it's needed
In gamerequiredOn servernot needed

Install in the game only; not needed on the server

Game versions1.21–1.21.11

Preview

A small Minecraft mod that stops you from losing loot to a misclick mid-fight.

Item

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.

FAQ

How to install ItemLock?

Install Fabric for your Minecraft version, download ItemLock for the same version and loader, put the file into the mods folder and launch the game with the loader profile.

Which Minecraft versions does ItemLock support?

ItemLock has builds for Minecraft 1.21–1.21.11.

Is ItemLock needed on the server?

Client only — no need to install it on the server

License and source
Creative Commons Zero v1.0 Universalfree to use and share with credit to the author
Original — Modrinth↗Files unchanged, verified with SHA-512Is this your mod? For rights holders

The site uses cookies: the necessary ones for sign-in and the theme, plus the Yandex Metrica and LiveInternet visit counters — they show us how the site is used. We have no advertising cookies. More