预览
一个小型 Minecraft 模组,防止你在战斗中因误触而丢失掉落物。

功能说明
在选中某个快捷栏槽位时按下 O 键即可将其锁定。当槽位被锁定时:
- 在该槽位被选中时,按下 Q(或 Ctrl+Q)将无效——你无法意外丢弃物品。
- 在任何库存界面中,点击、拖拽、shift-click 或使用数字键将该物品移出槽位的操作均会被阻止。
- 库存中的其他部分仍可自由使用——你仍然可以拾取箱子中的物品并重新整理其他槽位。
- 被锁定的快捷栏槽位右下角会出现一个小锁图标,即使切换到其他槽位,也能一目了然地看到它处于激活状态。
你可以同时锁定多个槽位,且锁定状态会在不同游戏会话之间保留。当你切换周围的快捷栏槽位时,锁定会跟随原槽位。再次回到该锁定槽位并按下 O 可解锁;或者切换到其他槽位并按下 O,将锁定移至新槽位。每次锁定或解锁都会在动作栏显示确认消息。
如果 O 键与其他按键冲突,可在 选项 -> 控制 -> ItemLock 中重新绑定按键。
这是一个客户端模组——它在单人游戏中有效,在任何多人服务器上也同样适用,无需服务端安装。
要求
Fabric / Quilt
- Minecraft 1.21 或 1.21.11(请选择匹配的下载版本)
- Fabric Loader >= 0.18.4(或 Quilt Loader,通过其内置的 Fabric 兼容层)
- Fabric API(Quilt 上使用 Quilted Fabric API)
- 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
许可证
CC0-1.0 - 你可以随意使用它。
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.
评论 0
登录后参与评分
还没有评论,来抢沙发吧