hotbar-locker
The only mod that prevents locked slots from being replaced by block picker, Create Toolbox or even Creative inventory cleanup.
介绍

Keep your important items where you put them

Pick block and other equipment actions can replace the item in your selected hotbar slot. Hotbar Locker lets you lock individual slots so your tools and supplies stay put when items are placed automatically.
Choose a slot, press the key you assign, and a gold frame traces around the slot, followed by a small padlock, when it is locked. Locks persist with your player, including after reconnecting or respawning.


Lock the slots you choose
Protect selected hotbar slots from automatic replacement. Lock only the items you want to keep in place; the other slots remain available as usual.
- A thin gold frame and a padlock in the corner mark each locked slot, without covering the item, its stack count, or its durability bar. When a locked slot is selected, the selection outline turns gold too. A message and a sound confirm when you lock or unlock it.
- You can still select, use, consume, damage, and move items manually.
- Clearing the Creative inventory preserves locked hotbar stacks.
Pick block and Toolbox
Automatic equipment respects your locks. Pick block uses an unlocked slot when possible. If every hotbar slot is locked, it uses available main-inventory space; if there is none, it leaves protected items alone.
- When Create’s Toolbox tries to equip an item into a locked slot, Hotbar Locker redirects it to an unlocked slot when possible.
- If every hotbar slot is locked, Toolbox equipment is rejected safely.
- Create is optional; Hotbar Locker works without it.

- Open Options → Controls → Key Binds and assign Toggle hotbar slot lock.
- Select the hotbar slot you want to protect.
- Press your assigned key to lock or unlock that slot. Look for the gold frame, the padlock, and the confirmation message.
Heads up: locking a slot only blocks automatic replacement. It does not stop you from moving or using the item yourself.

Install Hotbar Locker on both the client and server.
- Minecraft 1.20.1: Forge 47.4.0
- Minecraft 1.21.1: Fabric Loader 0.16.9, Forge 52.0.53, or NeoForge 21.1.236
- Fabric API: required on Fabric (the project is built with 0.110.0+1.21.1)
- Create: optional, for Create Toolbox compatibility

Open an issue on GitHub. Include your Minecraft and loader versions, the action you were performing, and which slots were locked. A screenshot or short video can help show what happened.

Yes. Hotbar Locker is licensed under the MIT License. See LICENSE.
For development details, see the development guide, documentation index, and CHANGELOG.
常见问题
hotbar-locker 支持哪些 Minecraft 版本?
hotbar-locker 支持 Minecraft Java 版 1.20.1–1.21.1,共 2 个版本,可用的加载器:Fabric / Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。
hotbar-locker 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
radaeli 的其他作品
查看全部 →Create: Copycat Replace!
一键替换伪装者的材质——支持连接方块并兼容Copycats+
Sophisticated Backpacks: Digital Storage Expansion (AE2, RS, SCC)
将你的精妙背包连接到你的数字存储!支持应用能源2(AE2)、精致存储(RS)、Super Cool Calculator(SCC)和 Tom's Simple Storage。
[DEPRECATED] – Create: Stock Market – Updated Numismatics
已弃用 - 请使用官方模组 - 这个很快会被删除。
Simply Light: Smart!
An addon for Simply Light that adds redstone-dimmable lights and Smart Switch controls for linked lighting networks.
评论
登录后评论和评分