跳到正文

hotbar-locker

作者:radaeli

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

收藏

介绍

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

Hotbar Locker

Keep your important items where you put them

WHAT IT IS?

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.


WHAT CAN IT DO?

Locked hotbar slots marked with gold frames and padlocks

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.

HOW DO I USE IT?

  1. Open Options → Controls → Key Binds and assign Toggle hotbar slot lock.
  2. Select the hotbar slot you want to protect.
  3. 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.


REQUIREMENTS

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

FOUND A BUG?

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.


CAN I USE THIS IN A MODPACK?

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 的其他作品

查看全部 →