HomeJavaModsLockItem-Fabric
LockItem-Fabric
LockItem-Fabric — screenshot 1LockItem-Fabric — screenshot 2LockItem-Fabric — screenshot 3LockItem-Fabric — screenshot 4LockItem-Fabric — screenshot 5

Item Lock Mod

A client-side Fabric mod for Minecraft 1.21.1 that prevents accidental drops of hotbar items.

Features

Commands

All commands are client-side only:

/lockitem lock              - Lock currently held item
/lockitem lock <1-9>        - Lock specific hotbar slot
/lockitem unlock            - Unlock currently held item
/lockitem unlock <1-9>      - Unlock specific hotbar slot
/lockitem toggle            - Toggle lock on held item
/lockitem list              - List all locked slots
/lockitem clear             - Unlock all items
/lockitem help              - Show help message

Keybind

Installation

  1. Install Fabric Loader 0.17.2+
  2. Install Fabric API 0.116.6+
  3. Download the mod JAR
  4. Place in .minecraft/mods folder
  5. Launch Minecraft 1.21.1

Configuration

Config file location: .minecraft/config/itemlock.json

The config automatically saves locked slots and will restore them on next launch.

How It Works

Quick facts

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

These come from our own check of the pack file, not from the source page.

Explore more