跳到正文

LockItem-Fabric

作者:Ojcastillo29_

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

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

Item Lock Mod

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

Features

  • 🔒 Lock hotbar items (slots 1-9) to prevent dropping
  • 💾 Persistent locks (saved between game sessions)
  • 🎨 Visual lock indicator on items
  • ⌨️ Quick toggle with keybind (default: L)
  • 💬 Command-based control system
  • ✅ Works with vanilla, modded, and custom server items
  • 🎮 Compatible with Cobblemon and other mods

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

  • L – Quick toggle lock on currently held item

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

  • Locks are slot-based (hotbar slots 0-8)
  • Item fingerprint validation prevents accidental drops if items swap
  • Drop attempts are blocked at the client level
  • Visual indicators: 🔒 emoji overlay and tooltip
  • Compatible with custom NBT items from servers

常见问题

LockItem-Fabric 支持哪些 Minecraft 版本?

LockItem-Fabric 支持 Minecraft Java 版 1.21.1,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

LockItem-Fabric 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。

评论

登录后评论和评分

Ojcastillo29_ 的其他作品

查看全部 →