跳到正文

LockSlot

作者:b1nt1n

Prevents accidental drop of an item

收藏

截图

介绍

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

🔒 LockSlot

Protect important inventory slots and items from accidental drops.

LockSlot is a client-side Fabric mod for Minecraft 1.21.11 / 1.21.4. It can protect specific hotbar and inventory slots, or protect an item type wherever it appears in your inventory. No server installation is required.

✨ Features

  • 🔐 Lock all 9 hotbar slots and all 27 main inventory slots individually.
  • 🛡️ Choose one of three slot protection modes:
  • block dropping only;
  • block dropping and Shift-click transfers;
  • fully lock interactions with the slot.
  • 📋 Maintain a separate list of protected item types that are not tied to particular slots.
  • 🔎 Search for items using short names such as netherite_sword, with matching suggestions shown while typing.
  • ⌨️ Intentionally drop a protected item with Ctrl + Shift + Q.
  • 🖱️ Keep the inventory-window escape hatch: pick up an item and click outside the inventory to drop it.
  • 🔒 Choose between a lock icon, colored slot fill, or both.
  • 🎨 Customize the highlight with an HSV color palette, fill intensity, icon opacity, border visibility, and border opacity.
  • ⚙️ Configure everything through Mod Menu and Cloth Config. The /lockslot command opens the same settings screen in-game.
  • 🌍 Full English and Russian localization.
  • 💾 Automatically back up a damaged config/lockslot.json before restoring valid defaults.

🧩 Slot locks and protected items

🔒 Slot locks remain attached to the selected slot. Their behavior depends on the protection mode selected in the settings.

🛡️ Protected items are matched by item ID. They cannot be dropped accidentally with Q, regardless of which hotbar or inventory slot contains them, but they can still be moved normally.

⚙️ Configuration

Open:

Mod Menu → LockSlot → Configure

You can also run:

/lockslot

When adding a protected item, enter its short name and select it from the suggestion list. The minecraft: namespace is optional for vanilla items:

diamond_sword
elytra
totem_of_undying

📦 Requirements

  • ⛏️ Minecraft 1.21.11
  • 🧵 Fabric Loader 0.17.3 or newer
  • 🧰 Fabric API
  • 🎛️ Cloth Config 21.11.153 or newer
  • ☕ Java 21
  • 🧭 Mod Menu 17.0.0 or newer is recommended

📬 Support

For questions and bug reports: Telegram / Discord — @b1nt1n

常见问题

LockSlot 支持哪些 Minecraft 版本?

LockSlot 支持 Minecraft Java 版 1.21.4–1.21.11,共 2 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

LockSlot 怎么安装?

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

评论

登录后评论和评分

b1nt1n 的其他作品

查看全部 →