LongHotbar
LongHotbar 是一款适用于 Minecraft 1.21.11 的 Fabric 客户端模组,它增加了一个并排多快捷栏系统,允许你通过灵活的切换机制快速访问更多的物品行。
注意:TRIPLE(三栏)和 QUAD(四栏)模式需要模组版本 2.0.0+。
- 作者: YkinLing
- AI 助手: Deepseek
- QQ 群: 783492491 (用于获取源代码)


(QUAD 模式需要 2.0.0+)
✨ 功能特性
-
多栏快捷栏
支持 DUAL、TRIPLE 和 QUAD 并排快捷栏,每栏包含 9 个槽位。- DUAL 模式:左栏为主快捷栏(槽位 0-8),右栏为可配置的物品行(第 1/2/3 行)。
- TRIPLE/QUAD 模式:所有栏显示不同的物品行;你可以使用 R 键或鼠标滚轮在栏之间进行切换和重新排序。
-
智能物品交换
使用 R 键(可配置)在主快捷栏与扩展物品行(DUAL 模式)或各栏之间交换物品。
支持单击和长按操作,并具有独立的行为逻辑(整行交换、单件物品交换、排除主手等)。 -
副手槽图标
自动在主快捷栏左侧显示你的副手物品图标(偏移量可调)。 -
原版风格模式
按下 = 键可立即恢复为原版的单栏外观(交换功能仍然有效);再次按下即可恢复多栏显示。 -
滚轮自动交换
当你在向左滚动时经过最左侧槽位(0),或在向右滚动时经过最右侧槽位(8),模组会自动交换整行并切换左右位置(DUAL 模式)或更改聚焦的栏位(TRIPLE/QUAD 模式)。 -
双击数字键
快速双击数字键(1-9),可将该槽位的物品与扩展行/栏中相同列位置的物品进行交换。 -
Ctrl+数字快捷键 (2.0.0+)
按住配置的修饰键(默认为左 Ctrl)并按下 1-4,可快速切换模式:- Ctrl+1: 切换原版风格模式
- Ctrl+2: 切换到 DUAL 模式
- Ctrl+3: 切换到 TRIPLE 模式
- Ctrl+4: 切换到 QUAD 模式
-
完全可配置
所有功能均可通过 Mod Menu 或配置文件进行微调。
? 默认按键绑定
| 按键 | 动作 |
|---|---|
R |
单击: 根据配置交换物品;长按: 整行交换(并可可选地切换左右位置) |
= |
单击: 切换原版风格模式;长按: 循环选择交换行(DUAL 模式)或旋转背包行(TRIPLE/QUAD) |
1~9 |
双击: 将物品与扩展栏中相同列的物品进行交换 |
Ctrl+1~4 |
快速切换模式(需要 2.0.0+,默认修饰键为左 Ctrl) |
? 长按延迟默认为 200 毫秒(可配置)。
⚙️ 配置选项
可通过 Mod Menu(推荐)或手动编辑 config/longhotbar.json5 进行配置。
| 选项 | 描述 | 默认值 |
|---|---|---|
| 完全禁用模组 | 完全禁用模组:不显示多栏,无交换功能,= 键失效。必须通过配置文件或 Mod Menu 重新启用。 |
false |
| 原版风格模式 | 恢复为原版单栏外观(交换功能仍然有效)。 | false |
| 快捷栏模式 | 选择 DUAL、TRIPLE 或 QUAD。TRIPLE/QUAD 需要 2.0.0+。 | DUAL |
| 快捷栏间距 | 栏之间的像素间隙(可为负数)。 | -1 |
| 副手偏移量 | 副手图标相对于左快捷栏左边缘的水平偏移量(像素)。 | -30 |
| 单件物品交换模式(仅限单击) | 开启时:单击 R 仅交换主手物品。关闭时:单击 R 交换整行。 | false |
| 反转交换行为(仅限单击) | 开启时:单击 R = 仅整行交换(无位置切换),长按 R = 整行交换 + 切换位置。关闭时:相反。 | false |
| 单击交换其余 8 个物品 | 开启时:单击 R 交换快捷栏中除当前选中槽位外的其他 8 个物品(主手物品保持不变)。覆盖上述两个选项。 | false |
| 交换行 | 在 DUAL 模式下与主快捷栏交换的物品行:1 = 顶行(9-17),2 = 中行(18-26),3 = 底行(27-35)。 | 3 |
| 反向交换行循环顺序 | 开启时,长按 = 会从底到顶循环交换行(3→2→1→3),而不是从顶到底。 |
false |
| 长按延迟(毫秒) | 触发长按动作所需按住按键的时间(范围 180–1000)。 | 200 |
| 播放交换音效 | 通过按键(R、=、双击)交换时播放拾取音效。滚轮自动交换不播放音效。 | true |
| 启用 Ctrl+数字快捷键 | 是否允许修饰键 + 数字快速切换模式(需要 2.0.0+)。 | true |
| 快捷键修饰键 | 与数字 1-4 配合使用的修饰键(左 Ctrl、右 Ctrl、左 Alt、右 Alt、左 Shift、右 Shift)。 | LEFT_CONTROL |
| = 键短按/长按功能互换 | 开启时:短按 = 循环选择交换行,长按 = 切换原版风格模式。关闭时:相反。 | true |
?️ 使用示例
基本玩法
- 加载模组后,你会在屏幕底部看到并排的双热键栏。
- 在 DUAL 模式下:右侧栏默认显示底部物品栏行(第 27-35 格)。长按
=键可切换至其他行。 - 按数字键选择左侧栏的某个格子;双击该键可将左侧选中格的物品与右侧对应格的物品互换。
- 按
R键(短按或长按取决于你的配置)可快速将整行与右侧栏的物品互换。 - 当选中最左侧格子(0)并向左滚动,或选中最右侧格子(8)并向右滚动时,模组会自动互换整行物品并切换左右位置(DUAL 模式)或改变焦点栏(TRIPLE/QUAD 模式)。
高级技巧
- 单个物品快速互换:启用“Single Item Swap Mode”,然后按
R键可将主手物品与右侧栏对应格的物品互换。 - 保留主手物品:启用“Tap swaps the other 8 items”。按
R键将互换所有其他热键栏格子,而保持当前选中格不变——非常适合快速整理背包。 - 在 TRIPLE/QUAD 模式下重新排序栏位:使用 R 键(短按=下一栏,长按=上一栏)或在边缘处使用滚轮来更改哪个物品栏行出现在哪个栏位中。模组会相应地在行之间物理移动物品。
? 兼容性
- Minecraft 版本:1.21.11
- Mod 加载器:Fabric
- 依赖项:Fabric API, Cloth Config API
- 可选:Mod Menu(提供图形界面配置屏幕)
? 注意事项
- 本模组仅客户端生效;无需在服务器上安装。
- 如果遇到渲染重叠或偏移问题,请调整“Hotbar Spacing”和“Offhand Offset”选项。
- 当启用“Completely Disable Mod”时,“=” 键将失效。你必须通过配置文件或 Mod Menu 重新启用模组。
- TRIPLE 和 QUAD 模式需要模组版本 2.0.0 及以上。早期版本仅支持 DUAL 模式。
? 许可证
BSD 2-Clause License
LongHotbar
LongHotbar is a Fabric client-side mod for Minecraft 1.21.11 that adds a side-by-side multi hotbar system, allowing you to quickly access more inventory rows with flexible swapping mechanics.
Note: TRIPLE and QUAD modes require mod version 2.0.0+.
- Author: YkinLing
- AI Assistant: Deepseek
- QQ Group: 783492491 (for source code)


(QUAD mode requires 2.0.0+)
✨ Features
-
Multi‑Bar Hotbar
Supports DUAL, TRIPLE, and QUAD side‑by‑side hotbars, each with 9 slots.- DUAL mode: left bar = main hotbar (slots 0-8), right bar = a configurable inventory row (row 1/2/3).
- TRIPLE/QUAD mode: all bars display different inventory rows; you can swap bars and reorder them using R key or mouse scroll.
-
Smart Item Swapping
Use R key (configurable) to swap items between the main hotbar and an extended inventory row (DUAL mode) or between bars (TRIPLE/QUAD mode).
Supports tap and hold actions with separate behaviors (full row, single item, exclude main hand, etc.). -
Offhand Slot Icon
Automatically shows your offhand item next to the left hotbar (offset adjustable). -
Vanilla Style Mode
Press = to instantly revert to the vanilla single‑bar look (swapping still works); press again to restore the multi‑bar display. -
Scroll Wheel Auto‑Swap
When you scroll past the leftmost slot (0) while scrolling left, or past the rightmost slot (8) while scrolling right, the mod automatically swaps full rows and toggles left/right positions (DUAL mode) or changes the focused bar (TRIPLE/QUAD mode). -
Double‑Tap Number Keys
Quickly double‑tap a number key (1-9) to swap the item in that slot with the same column position in the extended row/bar. -
Ctrl+Number Shortcuts (2.0.0+)
Hold the configured modifier key (default Left Ctrl) and press 1-4 to quickly switch modes:- Ctrl+1: toggle Vanilla Style Mode
- Ctrl+2: switch to DUAL mode
- Ctrl+3: switch to TRIPLE mode
- Ctrl+4: switch to QUAD mode
-
Fully Configurable
All features can be fine‑tuned via Mod Menu or the config file.
? Default Key Bindings
| Key | Action |
|---|---|
R |
Tap: swap according to configuration; Hold: full row swap (and optionally toggle left/right positions) |
= |
Tap: toggle Vanilla Style Mode; Hold: cycle the swap row (DUAL mode) or rotate backpack rows (TRIPLE/QUAD) |
1~9 |
Double‑tap: swap the item with the same column in the extended bar |
Ctrl+1~4 |
Quick mode switching (requires 2.0.0+, default modifier Left Ctrl) |
? Long‑press delay is 200 ms by default (configurable).
⚙️ Configuration Options
Configure via Mod Menu (recommended) or manually edit config/longhotbar.json5.
| Option | Description | Default |
|---|---|---|
| Completely Disable Mod | Completely disables the mod: no multi‑bar, no swapping, = key won’t work. Must be re‑enabled via config file or Mod Menu. |
false |
| Vanilla Style Mode | Reverts to the vanilla single‑bar appearance (swapping still works). | false |
| Hotbar Mode | Choose DUAL, TRIPLE, or QUAD. TRIPLE/QUAD require 2.0.0+. | DUAL |
| Hotbar Spacing | Pixel gap between bars (can be negative). | -1 |
| Offhand Offset | Horizontal offset of the offhand icon from the left edge of the left hotbar (pixels). | -30 |
| Single Item Swap Mode (Tap only) | When ON: Tap R swaps only the main hand item. When OFF: Tap R swaps the entire row. | false |
| Invert Swap Behavior (Tap only) | When ON: Tap R = full row swap only (no position toggle), Hold R = full row swap + toggle position. When OFF: opposite. | false |
| Tap swaps the other 8 items | When ON: tapping R swaps the 8 items in the hotbar other than the currently selected slot (main hand item stays). Overrides the two options above. | false |
| Swap Row | Which inventory row to swap with the main hotbar in DUAL mode: 1 = top row (9-17), 2 = middle row (18-26), 3 = bottom row (27-35). | 3 |
| Reverse swap row cycle order | When ON, long‑pressing = cycles the swap row from bottom to top (3→2→1→3) instead of top to bottom. |
false |
| Long press delay (ms) | Milliseconds you must hold a key to trigger a long press action (range 180–1000). | 200 |
| Play Swap Sound Effect | Plays a pickup sound when swapping via keys (R, =, double‑tap). Does not play for scroll wheel auto‑swap. | true |
| Enable Ctrl+Number Shortcuts | Whether to allow modifier key + number quick mode switching (requires 2.0.0+). | true |
| Shortcut Modifier Key | Modifier key used with numbers 1-4 (Left Ctrl, Right Ctrl, Left Alt, Right Alt, Left Shift, Right Shift). | LEFT_CONTROL |
| Swap = Key Short/Long Press Functions | When ON: short press = cycle swap row, long press = toggle Vanilla Style Mode. When OFF: opposite. | true |
?️ Usage Examples
Basic Gameplay
- After loading the mod, you’ll see side‑by‑side hotbars at the bottom.
- In DUAL mode: the right bar shows the bottom inventory row (slots 27-35) by default. Long‑press
=to switch to a different row. - Press a number key to select a slot on the left bar; double‑tap it to swap that item with the same slot on the right bar.
- Press
R(tap or hold, depending on your config) to quickly swap the entire row with the right bar. - When you have the leftmost slot (0) selected and scroll left, or the rightmost slot (8) selected and scroll right, the mod automatically swaps the full row and toggles left/right positions (DUAL mode) or changes the focused bar (TRIPLE/QUAD mode).
Advanced Tips
- Single‑item quick swap: Enable
Single Item Swap Mode, then tapRto swap your main hand item with the corresponding slot on the right bar. - Keep your main hand item: Enable
Tap swaps the other 8 items. TappingRwill swap all other hotbar slots while leaving the currently selected slot untouched – great for quick inventory organisation. - Reorder bars in TRIPLE/QUAD mode: Use R key (short press = next bar, long press = previous bar) or scroll wheel (at edges) to change which inventory row appears in which bar. The mod physically moves items between rows accordingly.
? Compatibility
- Minecraft version: 1.21.11
- Mod loader: Fabric
- Dependencies: Fabric API, Cloth Config API
- Optional: Mod Menu (provides a GUI configuration screen)
? Notes
- This mod works client‑side only; it does not need to be installed on a server.
- If you experience rendering overlaps or offsets, adjust the
Hotbar SpacingandOffhand Offsetoptions. - When
Completely Disable Modis enabled, the=key will not work. You must re‑enable the mod via the config file or Mod Menu. - TRIPLE and QUAD modes require mod version 2.0.0+. Earlier versions only support DUAL mode.
? License
BSD 2-Clause License
下载 Hysk-LongHotbar
下载 Hysk-LongHotbar
下载 Hysk-LongHotbar
下载 Hysk-LongHotbar
下载 Hysk-LongHotbar
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Hysk-LongHotbar
下载 Hysk-LongHotbar
下载 Hysk-LongHotbar
下载 Hysk-LongHotbar
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Hysk-LongHotbar
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
已修复
-
修复了默认按键绑定错误显示为“向上箭头”、“F4”和“数字键盘8”的问题。
-
原因:Minecraft 26.3 从 GLFW 迁移到了 SDL3,而 KeyMapping 构造函数期望接收的是 SDL 扫描码(scancode),而非键码(keycode)。
-
现在正确显示为:R(交换物品)、=(切换原版风格)、`(滚动倍率修饰键)。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧