All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Hysk-LongHotbar

Hysk-LongHotbar

by YkinLing • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

LongHotbar

Minecraft NeoForge Forge Fabric

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)

longhotbar
longhotbar*4
(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

  1. After loading the mod, you’ll see side‑by‑side hotbars at the bottom.
  2. In DUAL mode: the right bar shows the bottom inventory row (slots 27-35) by default. Long‑press = to switch to a different row.
  3. 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.
  4. Press R (tap or hold, depending on your config) to quickly swap the entire row with the right bar.
  5. 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 tap R to 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. Tapping R will 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 Spacing and Offhand Offset options.
  • When Completely Disable Mod is 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

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
26.3
Fabric
10d ago 1
1.20.1
Forge
15d ago 1
26.3
Fabric
22d ago 1
26.2
Fabric
2mo ago 1
1.21.1
Neoforge
2mo ago 1
1.20.1
Forge
2mo ago 1
26.2
Fabric
2mo ago 1
26.2
Fabric
2mo ago 1
1.21.1
Neoforge
2mo ago 1
1.21.1
Neoforge
3mo ago 1
1.20.1
Fabric
3mo ago 1
26.2
Fabric
4mo ago 1
1.20.1
Forge
4mo ago 1
1.21.8
Fabric
5mo ago 1
1.21
Fabric
5mo ago 1
26.1.2
Fabric
5mo ago 1
26.1.1
Fabric
5mo ago 1
26.1
Fabric
5mo ago 1
1.21.1
Fabric
5mo ago 1
26.1.2
Fabric
5mo ago 1
26.1.1
Fabric
5mo ago 1
26.1
Fabric
5mo ago 1
1.20.1
Forge
6mo ago 1
26.1.2
Neoforge
6mo ago 1
26.1.1
Neoforge
6mo ago 1
26.1
Neoforge
6mo ago 1
26.1
Fabric
6mo ago 1
26.1.1
Fabric
6mo ago 1
26.1.2
Fabric
6mo ago 1
1.21.1
Neoforge
6mo ago 1
1.21.9
Fabric
6mo ago 1
1.21.10
Fabric
6mo ago 1
1.21.11
Fabric
6mo ago 1
1.21.1
Neoforge
6mo ago 1
26.1.2
Fabric
6mo ago 1
26.1.1
Fabric
6mo ago 1
26.1
Fabric
6mo ago 1
1.21.11
Fabric
6mo ago 1
1.21.1
Neoforge
6mo ago 1
26.1
Neoforge
6mo ago 1
26.1.1
Neoforge
6mo ago 1
26.1.2
Neoforge
6mo ago 1
1.21.1
Neoforge
6mo ago 1
1.21.8
Fabric
6mo ago 1
1.21.9
Fabric
6mo ago 1
1.21.10
Fabric
6mo ago 1
1.21.11
Fabric
6mo ago 1
26.1.2
Fabric
6mo ago 1
26.1.1
Fabric
6mo ago 1
26.1
Fabric
6mo ago 1
1.21.4
Fabric
7mo ago 1
1.21.8
Fabric
7mo ago 1
1.20.1
Fabric
7mo ago 1
1.21.1
Fabric
7mo ago 1
1.21.9
Fabric
7mo ago 1
1.21.10
Fabric
7mo ago 1
1.21.11
Fabric
7mo ago 1
> Fixed

  • Fixed the default key bindings incorrectly showing as Arrow Up, F4, and Numpad 8.

  • Cause: Minecraft 26.3 migrated from GLFW to SDL3, and the KeyMapping constructor expects an SDL scancode, not a keycode.

  • Now correctly displays: R (Swap Items), = (Toggle Vanilla Style), ` (Scroll Multiplier Modifier).
  • The fix only involves the build configuration and the Mixin mapping.
  • Improve compatibility issues in the relevant part
[LongHotbar] Fix: Fabric scroll wheel accidentally triggers swap in GUI
  • Symptom: Scrolling at hotbar edge while inventory/chest is open caused a full row swap.
  • Cause: handleScroll lacked a check for client.gui.screen(), allowing edge-swap logic in GUI contexts.
  • Fix: Added if (client.gui.screen() != null) return false; to disable mod scroll behavior in GUI.
  • Verification: No swap occurs in GUI; vanilla scrolling works; HUD functionality remains intact.
  • Fixed: In DUAL mode, when “Enable middle-click pick block (row swap)” is enabled, middle-clicking a block only searched the configured swapRow row, preventing row swaps from other inventory rows. Now it traverses all non-main rows (9, 18, 27) to find matching items, aligning the row-swap behavior with TRIPLE/QUAD modes.
  • Added new config option Enable middle-click pick block (row swap) (default: false) to control middle-click block picking behavior.

1. When false (vanilla behavior): middle-click only searches the 9 hotbar slots.
2. When true: if the target block is not in the hotbar, the mod searches the configured inventory rows (DUAL mode: the row defined by swapRow; TRIPLE/QUAD: backpack rows 9, 18, 27), swaps the entire matching row into the hotbar, and automatically moves the selection highlight to the column of the swapped item, ensuring the held item matches the highlighted slot.

  • New key "Scroll Multiplier Modifier" default binding (curly brackets).
  • Added new Scroll Multiplier (default: 3 blocks)
1. Fixed the highlight not following the main hotbar row when using scroll multiplier in DUAL mode; now correctly synchronized.
[LongHotbar] Fabric: Short press of = key behavior:
  • DUAL mode (disableMod=false): Only cycles the right-side hotbar row (swapRow 1→2→3), left/right positions unchanged.
  • Vanilla Style mode (disableMod=true): Swaps the current extended row with the main row, toggles swappedPosition, then updates swapRow.
  • This aligns with NeoForge behavior, fixing the previous issue of "always swapping the right side".
  • Added new config option Enable middle-click pick block (row swap) (default: false) to control middle-click block picking behavior.

1. When false (vanilla behavior): middle-click only searches the 9 hotbar slots.
2. When true: if the target block is not in the hotbar, the mod searches the configured inventory rows (DUAL mode: the row defined by swapRow; TRIPLE/QUAD: backpack rows 9, 18, 27), swaps the entire matching row into the hotbar, and automatically moves the selection highlight to the column of the swapped item, ensuring the held item matches the highlighted slot.

  • New key "Scroll Multiplier Modifier" default binding (curly brackets).
  • Added new Scroll Multiplier (default: 3 blocks)
1. Fixed the highlight not following the main hotbar row when using scroll multiplier in DUAL mode; now correctly synchronized.
  • Added new config option Enable middle-click pick block (row swap) (default: false) to control middle-click block picking behavior.

1. When false (vanilla behavior): middle-click only searches the 9 hotbar slots.
2. When true: if the target block is not in the hotbar, the mod searches the configured inventory rows (DUAL mode: the row defined by swapRow; TRIPLE/QUAD: backpack rows 9, 18, 27), swaps the entire matching row into the hotbar, and automatically moves the selection highlight to the column of the swapped item, ensuring the held item matches the highlighted slot.

  • New key "Scroll Multiplier Modifier" default binding (curly brackets).
  • Added new Scroll Multiplier (default: 3 blocks)
1. Fixed the highlight not following the main hotbar row when using scroll multiplier in DUAL mode; now correctly synchronized.
  • LongHotbar fixes an issue where, when swapping at the edge of the scroll wheel, the type of the currently opened container was not checked, resulting in an index out-of-bounds error when attempting to swap items on the PhysicsBogeyMenu GUI of Simurail-Mod (without item slots), causing a crash.
  • Fixed slider value explosion: Removed custom value field, now uses parent's ratio value to calculate, ensuring slider value stays within -200~200.

  • Fixed config file concurrent write crash: Catch WritingException when slider value changes, preventing game crash due to file lock conflicts.
  • Fixed incorrect rendering order of the selection highlight in DUAL mode, which caused item icons to be blocked (especially with non‑transparent resource packs). The highlight is now rendered before item stacks, matching the behavior of TRIPLE / QUAD modes, so items are always visible on top.
  • Fixed incorrect rendering order of the selection highlight in DUAL mode, which caused item icons to be blocked (especially with non‑transparent resource packs). The highlight is now rendered before item stacks, matching the behavior of TRIPLE / QUAD modes, so items are always visible on top.
  • Fixed incorrect rendering order of the selection highlight in DUAL mode, which caused item icons to be blocked (especially with non‑transparent resource packs). The highlight is now rendered before item stacks, matching the behavior of TRIPLE / QUAD modes, so items are always visible on top.
> Fixed an issue where pressing the = key (short press) in Dual-bar mode with "Vanilla Style Mode" (disableMod = true) did not cycle the inventory rows.
Solution: When disableMod = true, a short press of = now swaps the entire row and cycles the swapRow (same behavior as Triple/Quad modes). When disableMod = false, short press only cycles swapRow (preview on the right bar without moving items). Long press of = remains unchanged (toggles Vanilla Style Mode).
> Fixed an issue where pressing the = key (short press) in Dual-bar mode with "Vanilla Style Mode" (disableMod = true) did not cycle the inventory rows.
Solution: When disableMod = true, a short press of = now swaps the entire row and cycles the swapRow (same behavior as Triple/Quad modes). When disableMod = false, short press only cycles swapRow (preview on the right bar without moving items). Long press of = remains unchanged (toggles Vanilla Style Mode).
> Fixed an issue where pressing the = key (short press) in Dual-bar mode with "Vanilla Style Mode" (disableMod = true) did not cycle the inventory rows.
Solution: When disableMod = true, a short press of = now swaps the entire row and cycles the swapRow (same behavior as Triple/Quad modes). When disableMod = false, short press only cycles swapRow (preview on the right bar without moving items). Long press of = remains unchanged (toggles Vanilla Style Mode).
  • Triple/Quad bars:Synced = key inversion config (swapEqualShortLongPress), short/long press behavior now matches DUAL mode.

  • = key improvements:Fixed issue where long press wouldn't cycle backpack rows in vanilla style mode; short/long press fully adapts to inversion setting.

  • Rendering fix:Adjusted hotbar icon render order, selection highlight no longer obscures item icons.
![Triple/Quad Mode Features](https://cdn.modrinth.com/data/cached_images/54f59db69a52a3df2741a5d01583cdd690525f63.png)
Added Triple/Quad Mode Features

Display 3 or 4 hotbars side by side, each representing a full inventory row (slots 0‑8, 9‑17, 18‑26, 27‑35).

R key: Short press swaps current focused bar with the bar to its right and moves focus right; long press swaps with left bar and moves focus left.

= key: Short press rotates the three backpack rows (9‑17, 18‑26, 27‑35) cyclically; long press toggles vanilla style mode (single bar).

Mouse scroll: At the leftmost/rightmost edge of the hotbar, scroll to swap the entire row with the adjacent bar and shift focus.

Double‑tap number keys: Swap main hand item with the corresponding slot in the focused bar.


Added config option "Swap = Key Short/Long Press Functions", default ON. When ON, short pressing = cycles the swap row, and long pressing toggles vanilla style mode.
  • Compatible with 1.21.1 Minecraft Neoforge
> Fix the compass, clock, and recovery_compass ico issues
> Fix the compass, clock, and recovery_compass ico issues
> Fix the compass, clock, and recovery_compass ico issues
> Fix the compass, clock, and recovery_compass ico issues
  • Yarn is no longer officially supported by Fabric.
  • transitioned mods to Mojang’s mappings,
  • Fix the issue where the keys cannot be bound.
  • LongHotbar The dual-column side-by-side quick bar enables you to quickly access more items in your backpack and offers a flexible item exchange mechanism.
Hysk-LongHotbar Icon
Download Hysk-LongHotbar
Select game version
Select platform