All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Keybind

Keybind

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

⌨️ Keybind

Bind keys to server-side commands. Press a key, the server runs a command.

Available on Modrinth Source on GitHub Metrics by bStats Donate with PayPal

Note: Both the Server Plugin and the matching Client Mod must be installed for keybinds to function. On servers without the plugin, no keybinds will be registered or available.


✨ Features

  • 🔗 Server-Driven: Actions are defined entirely on the server and synced to the client on join.
  • 📁 Per-Server Storage: Key assignments are saved per server IP in .minecraft/config/keybind-servers/ and never overwritten on rejoin.
  • 🛠️ Dynamic Registration: New server actions appear in your Settings → Controls menu without restarting the game.
  • 💬 In-game Manager: On Paper 1.21.7+, /kbind manage opens a Minecraft dialog to add, edit, or delete keybinds without touching config.yml. Click Press a key…, then press the key (client mod required).
  • ⏱️ Dual Cooldowns: Both a global cooldown (between any actions) and per-action cooldowns prevent spam.
  • 📊 bStats Metrics: Fully anonymous server telemetry to help track plugin usage and adoption.
  • 🔐 Permission Support: Each action supports an optional extra permission node on top of keybind.use.

🚀 How It Works

  1. Sync: When a player with the client mod joins, the plugin sends all configured actions (name, display name, default key) over the keybind:sync channel. Vanilla clients receive nothing.
  2. Registration: The mod registers each action as a native Minecraft keybind under the Keybind category in Settings → Controls.
  3. Trigger: When a key is pressed (and no screen is open), the mod sends the action name over the keybind:main channel.
  4. Execution: The plugin validates the action name (alphanumeric + underscores only), checks permissions and cooldowns, then runs the command.

🛠️ Installation

Server Side

  1. Place Keybind-Plugin-1.0.4.jar into your plugins/ folder.
  2. Restart the server — plugins/Keybind/config.yml is generated automatically.
  3. Edit config.yml to define your actions, then run /kbind reload.

Client Side

  1. Install the client jar matching your Minecraft version and loader into .minecraft/mods/
  2. Install the required loader and API for the selected platform. Use Java 21 for Minecraft 1.21.x, and Java 25 for Minecraft 26.x. On Quilt, use the dedicated Quilt jar (no Fabric API needed).
  3. Do not install multiple Keybind client jars at the same time. Launch the game and connect to a server running the Keybind plugin.

⚙️ Configuration

plugins/Keybind/config.yml

# Update Checker (checks GitHub releases and notifies admins on join)
update-checker: true

# Global cooldown between any keybind actions (milliseconds)
global-cooldown: 500

actions:
  spawn:
    command: "spawn"              # Command to run (without /)
    display-name: "Spawn"        # Label shown in Controls menu
    default-key: "LEFT_BRACKET"  # Suggested key for first-time players
    permission: ""               # Optional extra permission node (leave empty for none)
    cooldown: 1000               # Per-action cooldown (ms); defaults to global-cooldown
    console: false               # true = run as console with {player} replaced by player name

  home:
    command: "home"
    display-name: "Home"
    default-key: "RIGHT_BRACKET"
    permission: ""
    cooldown: 1000
    console: false

# Enable anonymous metrics reporting (bStats)
metrics: true

Notes:

  • Action names must be alphanumeric + underscores only (e.g. my_action).
  • console: true runs the command as the console sender. Use {player} as a placeholder for the player's name (e.g. command: "tp {player} spawn").
  • default-key is only applied the first time a player connects. Their saved binding is used on subsequent joins.

⌨️ Supported Keys

Keyboard

Category Values
Letters A–Z
Numbers 0–9
Function F1–F25
Arrows UP, DOWN, LEFT, RIGHT
Navigation PAGE_UP, PAGE_DOWN, HOME, END, INSERT, DELETE
Special SPACE, ENTER, TAB, BACKSPACE, ESCAPE, PAUSE
Lock keys CAPS_LOCK, SCROLL_LOCK, NUM_LOCK
Other PRINT_SCREEN, MENU
Modifiers LEFT_SHIFT, LEFT_CONTROL (or LEFT_CTRL), LEFT_ALT, LEFT_SUPER, RIGHT_SHIFT, RIGHT_CONTROL (or RIGHT_CTRL), RIGHT_ALT, RIGHT_SUPER
Numpad KP_0–KP_9, KP_ADD, KP_SUBTRACT, KP_MULTIPLY, KP_DIVIDE, KP_DECIMAL, KP_ENTER, KP_EQUAL
Symbols LEFT_BRACKET, RIGHT_BRACKET, BACKSLASH, SEMICOLON, APOSTROPHE, COMMA, PERIOD, SLASH, GRAVE_ACCENT, MINUS, EQUAL — or the character directly: [, ], \, ;, ', ,, ., /, `, -, =
World keys WORLD_1, WORLD_2 (locale-specific keys on some keyboards)

Mouse

Value Aliases Button
MOUSE_LEFT MOUSE_1 Left click
MOUSE_RIGHT MOUSE_2 Right click
MOUSE_MIDDLE MOUSE_3 Middle click
MOUSE_4–MOUSE_8 — Side/extra buttons

📜 Commands & Permissions

Command Description Permission
/kbind <action> Manually trigger an action keybind.use
/kbind list List all configured action names (any)
/kbind manage Open the Minecraft dialog manager (Paper 1.21.7+) keybind.admin
/kbind add <name> <command...> Create a keybind keybind.admin
/kbind set <name> <field> <value> Edit command, display, key, permission, cooldown, or console keybind.admin
/kbind remove <name> Delete a keybind keybind.admin
/kbind reload Reload config and re-sync all online players keybind.admin
Permission Description Default
keybind.use Required to trigger any action true (everyone)
keybind.admin Access to /kbind manage, add/set/remove, and reload op
keybind.bypass.cooldown Ignore all cooldowns op

How to Install Keybind (Plugin)

Keybind by iM5LB1 is verified for Bukkit, Fabric, Folia, Forge, Neoforge, Paper, Purpur, Quilt, Spigot across Minecraft versions 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4 (latest release: 1.0.5, file size: 103 KB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4) and platform (Bukkit, Fabric, Folia, Forge, Neoforge, Paper, Purpur, Quilt, Spigot).
  2. Make sure you have the compatible loader or environment installed for Bukkit, Fabric, Folia, Forge, Neoforge, Paper, Purpur, Quilt, Spigot.
  3. Move the downloaded Keybind file into your Minecraft .minecraft/plugins folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
26.3 26.2 26.1.x +3
Bukkit Folia Paper Purpur Spigot
7d ago 1
26.3 26.2 26.1.x
Quilt
7d ago 1
1.21.x
Quilt
7d ago 1
26.3 26.2 26.1.x
Neoforge
7d ago 1
1.21.11
Neoforge
7d ago 1
1.21.x
Neoforge
7d ago 1
26.3 26.2 26.1.x
Forge
7d ago 1
1.21.11
Forge
7d ago 1
1.21.x
Forge
7d ago 1
26.3 26.2 26.1.x
Fabric
7d ago 1
1.21.x
Fabric
7d ago 1
26.3 26.2 26.1.x +4
Bukkit Paper Purpur Spigot
1mo ago 1
26.3 26.2 26.1.x
Neoforge
1mo ago 1
1.21.11
Neoforge
1mo ago 1
1.21.x
Neoforge
1mo ago 1
26.3 26.2 26.1.x
Forge
1mo ago 1
1.21.11
Forge
1mo ago 1
1.21.x
Forge
1mo ago 1
26.3 26.2 26.1.x
Fabric
1mo ago 1
1.21.x
Fabric
1mo ago 1
26.2 26.1.x 1.21.x +3
Bukkit Paper Purpur Spigot
2mo ago 1
26.2 26.1.x
Forge
2mo ago 1
1.21.11
Forge
2mo ago 1
1.21.x
Forge
2mo ago 1
26.2 26.1.x
Fabric
2mo ago 1
1.21.x
Fabric
2mo ago 1
26.2 26.1.x
Fabric
3mo ago 1
1.21.x
Fabric
3mo ago 1
26.2 26.1.x 1.21.x +3
Bukkit Paper Purpur Spigot
3mo ago 1
26.1.x 1.21.x 1.20.x +2
Bukkit Paper Purpur Spigot
6mo ago 1
1.21.x
Fabric
6mo ago 1
26.1.x 1.21.x 1.20.x +2
Bukkit Paper Purpur Spigot
7mo ago 1
26.1.x
Fabric
7mo ago 1
[1.0.5] Keybind 1.0.5 by iM5LB1 on Nov 19, 2026
Download
### Quilt (New)
  • Native Quilt builds**: Dedicated quilt/ modules for Minecraft 1.21 and 26.x — no Fabric API required.
  • Vanilla custom-payload transport via codec registration mixins, packet listener mixins, and minecraft:register channel announcement for Paper/ViaVersion compatibility.

### Fixes & Reliability
  • MC 26.3 Crash**: Resolved NoSuchFieldError on InputConstants.Type.KEYSYM (renamed to KEYBOARD in 26.3) with a reflective cross-version resolver shared by all loaders.
  • NeoForge/Forge Hello Retry**: Hello packet is now only marked sent after a successful send; failures are logged and retried instead of silently swallowed.
  • Duplicate Sync Message**: Repeat sync packets (early-join resend) no longer spam the [Keybind] Synced chat — it only shows on first sync or when actions change.
  • Sync Delivery**: Server resends sync ~1 second after hello (Folia-safe scheduler) to cover early-join packet loss; sync is only sent to clients that announced the mod.
  • Controls Category Order**: The **Keybind Actions** category now appears at the top of Settings → Controls on all loaders and versions.

### Plugin
  • Folia Support**: Sync scheduling works on both Paper and Folia via a reflective scheduler compatibility layer.
  • Compatibility Gating**: Plugin messages are only sent to players who sent the keybind hello — vanilla clients receive nothing.
  • Diagnostics**: Hello receipt and sync sends are logged for troubleshooting.
  • bStats**: Corrected metrics ID to the registered Keybinds project (34789).
[1.0.4] Keybind 1.0.4 by iM5LB1 on Oct 18, 2026
Download
### Fixes & Reliability
  • Controls Menu Duplication**: Resolved issue where keybinds appeared twice in **Settings → Controls → Key Binds** and were duplicated in options.txt. Replaced redundant static registration with name-based deduplication and in-place mapping updates in KeybindManager.
  • Automatic Settings Deduplication**: Client options mappings are automatically scanned and pruned of duplicate entries on initialization.
  • Forge Event Listener Cleanup**: Removed redundant RegisterKeyMappingsEvent registration in Forge 26 to rely on unified dynamic injection without duplicates.
  • Chat Formatting & Encoding**: Replaced legacy \u00a7 formatting codes in chat sync and key capture overlay messages with native ChatFormatting text components, preventing A a[Keybind] Mojibake on Windows systems.
  • Forge 26.1 Runtime Bootstrap**: Resolved launcher issue on Forge 26.1 where vanilla unpatched jar was selected instead of patched client binaries.

### NeoForge (Released)
  • NeoForge 1.21.11**: Official support added targeting NeoForge 21.11.48 (Minecraft 1.21.11).
  • NeoForge 26.1 / 26.2**: Full support for Minecraft 26.x with custom Category sorting, payload networking, and client tick handling.
  • NeoForge 1.21**: Stable build targeting NeoForge 21.0.167.

### Plugin
  • Chest GUI Fallback**: Added interactive 54-slot Chest GUI with pagination and click sounds for servers without Paper Dialog API.
  • Update Checker**: Automatic GitHub release check that notifies administrators when joining.
  • Metrics**: Anonymous telemetry via bStats.
[1.0.3] Keybind 1.0.3 by iM5LB1 on Sep 13, 2026
Download
### Plugin
  • Minecraft dialog manager on Paper 1.21.7+ via /kbind manage
  • Add, edit, delete keybinds and change the global cooldown in-game
  • Press a key…** captures the next key from the updated client mod
  • Admin commands: /kbind add, /kbind set, /kbind remove (works on older Paper too)

### Fabric / Forge / NeoForge
  • New keybind:capture channel so the client can send a pressed key back to the plugin
  • Action bar prompt while capturing; ESC cancels

### Forge (released)
  • Forge client builds for Minecraft 1.21, 1.21.11, and 26.1.
  • Forge 1.21.11 build targets Forge 61.2.1 and accepts Forge 61.1.5+.
  • Forge 26 build targets Minecraft 26.1 and Forge 62.0.9.
  • Fix Forge mod entrypoint construction and cross-version event-bus registration.
  • Fix Minecraft 1.21 resource-pack metadata and Forge loader version metadata.
[1.0.3] Keybind 1.0.3 by iM5LB1 on Sep 13, 2026
Download
### Forge (released)
  • Forge client builds for Minecraft 1.21, 1.21.11, and 26.1.
  • Forge 1.21.11 build targets Forge 61.2.1 and accepts Forge 61.1.5+.
  • Forge 26 build targets Minecraft 26.1 and Forge 62.0.9.
  • Fix Forge mod entrypoint construction and cross-version event-bus registration.
  • Fix Minecraft 1.21 resource-pack metadata and Forge loader version metadata.
[1.0.3] Keybind 1.0.3 by iM5LB1 on Sep 13, 2026
Download
### Forge (released)
  • Forge client builds for Minecraft 1.21, 1.21.11, and 26.1.
  • Forge 1.21.11 build targets Forge 61.2.1 and accepts Forge 61.1.5+.
  • Forge 26 build targets Minecraft 26.1 and Forge 62.0.9.
  • Fix Forge mod entrypoint construction and cross-version event-bus registration.
  • Fix Minecraft 1.21 resource-pack metadata and Forge loader version metadata.
[1.0.3] Keybind 1.0.3 by iM5LB1 on Sep 13, 2026
Download
### Forge (released)
  • Forge client builds for Minecraft 1.21, 1.21.11, and 26.1.
  • Forge 1.21.11 build targets Forge 61.2.1 and accepts Forge 61.1.5+.
  • Forge 26 build targets Minecraft 26.1 and Forge 62.0.9.
  • Fix Forge mod entrypoint construction and cross-version event-bus registration.
  • Fix Minecraft 1.21 resource-pack metadata and Forge loader version metadata.
[1.0.3] Keybind 1.0.3 by iM5LB1 on Sep 13, 2026
Download
### Fabric / Forge / NeoForge
  • New keybind:capture channel so the client can send a pressed key back to the plugin
  • Action bar prompt while capturing; ESC cancels
[1.0.3] Keybind 1.0.3 by iM5LB1 on Sep 13, 2026
Download
### Fabric / Forge / NeoForge
  • New keybind:capture channel so the client can send a pressed key back to the plugin
  • Action bar prompt while capturing; ESC cancels
[1.0.2] Keybind 1.0.2 by iM5LB1 on Aug 23, 2026
Download
# Changelog

## 1.0.2

### Fabric (ready with plugin)
  • Single jars: Fabric-Keybind-1.21 and Fabric-Keybind-26
  • Fix missing common classes in the 26.x jar
  • Support 1.21.9+ KeyMapping.Category (intermediary-safe)
  • Fix Controls UI: inject into keyMappings, not debugKeys
  • Register custom category so binds show under **Keybind Actions**

### Forge / NeoForge
  • In progress — next pass after Fabric

[1.0.2] Keybind 1.0.2 by iM5LB1 on Aug 23, 2026
Download
# Changelog

## 1.0.2

### Fabric (ready with plugin)
  • Single jars: Fabric-Keybind-1.21 and Fabric-Keybind-26
  • Fix missing common classes in the 26.x jar
  • Support 1.21.9+ KeyMapping.Category (intermediary-safe)
  • Fix Controls UI: inject into keyMappings, not debugKeys
  • Register custom category so binds show under **Keybind Actions**

### Forge / NeoForge
  • In progress — next pass after Fabric

[1.0.2] Keybind 1.0.2 by iM5LB1 on Aug 23, 2026
Download
# Changelog

## 1.0.2

### Fabric (ready with plugin)
  • Single jars: Fabric-Keybind-1.21 and Fabric-Keybind-26
  • Fix missing common classes in the 26.x jar
  • Support 1.21.9+ KeyMapping.Category (intermediary-safe)
  • Fix Controls UI: inject into keyMappings, not debugKeys
  • Register custom category so binds show under **Keybind Actions**

### Forge / NeoForge
  • In progress — next pass after Fabric

[1.0.1] Keybind 1.0.1 by iM5LB1 on May 19, 2026
Download
## [1.0.1] - 2026-05-19
  • Universal 1.21.x & 26.x Support for Fabric loader**: Implemented dynamic KeyMapping discovery to handle constructor changes across different Minecraft versions.
Keybind Icon
Download Keybind
Select game version
Select platform