Hotswap 将主物品栏的三行变为三个预设的热键栏。只需预先设置一次——第1行放置采矿工具,第2行放置战斗装备,第3行放置食物和实用道具——即可通过单次按键在它们之间切换,无需在战斗中拖拽物品。
控制方式
- V - 将当前热键栏与物品栏的第1行互换(切换:再次按下可换回)。
- B - 循环切换热键栏,顺序为第1行 -> 第2行 -> 第3行 -> 第1行……每次按下都会将热键栏替换为下一个已存储的配置。
操作栏会显示一条细微的消息以确认每次切换,让你始终清楚当前使用的是哪个配置。
工作原理
Hotswap 在底层执行真实的物品栏点击操作(ClientPlayerInteractionManager.clickSlot),与你手动交换物品的方式相同——只是速度更快。无需服务端模组支持,不涉及协议更改,也不会导致物品复制。如果两行中的物品完全相同,则会跳过以避免冗余操作,保持流程流畅。
示例工作流程
- 第1行 —— 镐、铲、斧、火把、圆石(采矿套装)。
- 第2行 —— 剑、弓、箭、盾牌、食物、图腾(战斗套装)。
- 第3行 —— 小麦、骨粉、种子、床、灯笼(农耕套装)。
按 V 可瞬间切换到采矿配置。连按两次 B 可直接跳转到农耕配置。你之前的热键栏会安全地滑回它原来的位置。
兼容性
适用于 Minecraft 1.21.8、1.21.9、1.21.10 和 1.21.11(Fabric Loader 0.16+)。一个 JAR 文件兼容这四个版本。
- 纯客户端模组——仅在客户端安装即可,可在任何原版服务器上运行。
- 按键通过原始 GLFW 轮询读取,因此无需重新绑定界面,且模组具备跨版本兼容性。
- 当文本输入框获得焦点时(聊天/告示牌/铁砧等)不会触发。
设计初衷
原版游戏中使用副手交换物品(F 键)只能移动单个物品。自动整理物品栏的模组虽然会重新排列物品,但无法保留你的使用意图。Hotswap 尊重你自定义的物品布局,并允许你以数字键般的速度切换不同的游戏情境。
Hotswap turns the three rows of your main inventory into three preset hotbars. Pre-arrange them once - mining tools in row 1, combat gear in row 2, food and utilities in row 3 - and switch between them with a single keypress instead of dragging items around mid-fight.
Controls
- V - swap your current hotbar with row 1 of the inventory (toggle: press again to swap back).
- B - cycle the hotbar through rows 1 -> 2 -> 3 -> 1 -> ... each press swaps the hotbar with the next stored loadout.
A subtle action-bar message confirms each swap so you always know which setup you're on.
How it works
Hotswap performs real inventory clicks under the hood (ClientPlayerInteractionManager.clickSlot), the same way you'd swap items by hand - just faster. No server-side mod required, no protocol changes, no item duplication. Items that are identical in both rows are skipped to keep the operation snappy.
Example workflow
- Row 1 - pickaxe, shovel, axe, torches, cobblestone (the mining kit).
- Row 2 - sword, bow, arrows, shield, food, totem (the combat kit).
- Row 3 - wheat, bone meal, seeds, beds, lantern (the farming kit).
Tap V to flip to mining instantly. Tap B twice to jump straight to farming. Your previous hotbar slides safely into the row it came from.
Compatibility
Works on Minecraft 1.21.8, 1.21.9, 1.21.10, and 1.21.11 (Fabric Loader 0.16+). One JAR for all four versions.
- Pure client-side - install only on your client, works on any vanilla server.
- Keys are read via raw GLFW polling, so no rebind UI is needed and the mod stays cross-version.
- Won't trigger while a text field is focused (chat / sign / anvil etc.).
Why
Vanilla's swap-with-offhand (F) only moves a single item. Mods that auto-sort the inventory rearrange but don't preserve intent. Hotswap respects the layout you set up and lets you switch contexts with the speed of a number-key press.
评论 0
登录后参与评分
还没有评论,来抢沙发吧