Back to mods
ItemLock project artwork

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.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which ItemLock release matches Fabric?

Updated today
Best match for your filters 1.9.0+1.21
Game version 1.21, 1.21.1, 1.21.2
Loader Fabric, Quilt

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.

Client Required
Dedicated server Not supported
Loader for this release Fabric, Quilt
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

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.

All 1 required mods have matching files

Install Fabric API first. We found matching files for this game-version and loader setup.

Fabric API Needed by ItemLock 1.9.0+1.21
required
Matching file found Matched file: 0.116.15+1.21.1

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.

  1. 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.

  2. 02

    Bring the mods it needs

    Install Fabric API first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    It must be installed on the client. Do not install it on the dedicated server.

  4. 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.

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.

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.

35 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

ItemLock versions and loaders

8 of 22 releases match
Clear filters

Looking for an older file? The official Modrinth project page is in Resources.