? LockSlot
防止重要物品栏槽位和物品被意外丢弃。
LockSlot 是一款适用于 Minecraft 1.21.11 / 1.21.4 的 Fabric 客户端模组。它可以保护特定的快捷栏和物品栏槽位,或者保护出现在你物品栏中的任何物品类型。无需安装服务端。
✨ 功能特性
- ? 单独锁定全部 9 个快捷栏槽位和 27 个主物品栏槽位。
- ?️ 提供三种槽位保护模式可供选择:
- 仅阻止丢弃;
- 阻止丢弃及 Shift+点击转移;
- 完全锁定与该槽位的所有交互。
- ? 维护一个独立的受保护物品类型列表,这些类型不与特定槽位绑定。
- ? 使用短名称(如
netherite_sword)搜索物品,输入时会显示匹配的推荐建议。
- ⌨️ 按住
Ctrl + Shift + Q 可故意丢弃受保护的物品。
- ?️ 保留物品栏窗口的“逃生出口”:拿起物品并点击物品栏外部即可将其丢弃。
- ? 可选择显示锁形图标、彩色槽位填充,或两者兼有。
- ? 自定义高亮效果:支持 HSV 调色板、填充强度、图标透明度、边框可见性及边框透明度。
- ⚙️ 所有设置均可通过 Mod Menu 和 Cloth Config 进行配置。在游戏中运行
/lockslot 命令也可打开相同的设置界面。
- ? 完整支持英文和俄文本地化。
- ? 在恢复有效默认值之前,自动备份损坏的
config/lockslot.json 文件。
? 槽位锁定与受保护物品
? 槽位锁定 会附着在所选择的槽位上。其行为取决于设置中选择的保护模式。
?️ 受保护物品 通过物品 ID 进行匹配。无论它们位于哪个快捷栏或物品栏槽位中,都无法通过 Q 键意外丢弃,但仍可正常移动。
⚙️ 配置
打开方式:
Mod Menu → LockSlot → Configure
你也可以运行以下命令:
/lockslot
添加受保护物品时,请输入其短名称并从推荐列表中选择。对于原版物品,minecraft: 命名空间是可选的:
diamond_sword
elytra
totem_of_undying
? 依赖要求
- ⛏️ Minecraft 1.21.11
- ? Fabric Loader 0.17.3 或更高版本
- ? Fabric API
- ?️ Cloth Config 21.11.153 或更高版本
- ☕ Java 21
- ? 推荐使用 Mod Menu 17.0.0 或更高版本
? 支持
如有问题或报告 Bug,请联系 Telegram / Discord — @b1nt1n
? 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
评论 0
登录后参与评分
还没有评论,来抢沙发吧