Keys4Macros
by DenisD3D
Keys4Macros lets players bind a key to a chat command, so a single press runs a macro that is defined in a configuration file.
What it does
Each macro pairs a key with a command that is sent to the chat as if typed, and the server processes it like any other command. Macros are defined in a configuration file, where several can be created, and a block can be defined as a macro too. Keys are assigned by number, so any key the player wants can trigger a given command, and a list of the keys found in the game helps when choosing one.
The mod is a Forge utility for the 1.16.1 – 1.19.2 range, with files for 11 release versions. Only the client needs it, but it also works on a server. Keys4Macros is open source under the Apache License 2.0, and its source code and issue tracker are public. The latest Forge file is 3.0.2 for 1.19.2, published 2022-11-19.
Key features
Key-bound macros
A pressed key runs a chosen command, so repeated commands need only one keystroke.
Configuration file setup
Macros are written into a configuration file, and the Reload button applies changes without restarting the game.
Block macros
A block can be defined as a macro, and duplicating that block gives the same trigger wherever it is placed.
Key number lookup
Keys are referenced by number, and a list of the keys found in the game helps players pick the right one.
Compatibility
Latest build for each game version and loader.
1.19.x3 of 3 versions with builds
1.18.x3 of 3 versions with builds
1.16.x5 of 5 versions with builds
Only full game releases are shown. This mod publishes no snapshot builds.
Use cases
Repeated server commands
A player who types the same command often can bind it to a key and send it with one press.
Who it’s for: Players who use the same chat commands often, and server owners who want a shared command shortcut for their players.
How it compares
MacroMenu is a Forge mod for 1.20.1 – 1.20.6 that requires the client, with the server optional, and is released under the MIT License. Command Keys covers Fabric, Forge, NeoForge and Quilt for 1.19.3 – 26.3, is client-side only and is open source under the Apache License 2.0. Default Key Setup is client-side only for Forge across 1.12.2 – 1.20.4, and is not open source.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Keys4Macros | Forge | 1.16.1 – 1.19.2 | Client-side only | 2022-11-19 |
| MacroMenu | Forge | 1.20.1 – 1.20.6 | Client required, server optional | 2025-07-31 |
| Command Keys | Fabric, Forge, NeoForge and Quilt | 1.19.3 – 26.3 | Client-side only | 2026-10-09 |
| Default Key Setup | Forge | 1.12.2 – 1.20.4 | Client-side only | 2025-03-31 |
Questions
Does the server need Keys4Macros?
Which versions does Keys4Macros cover?
Where are macros set up?
In the catalog
Keys4Macros is one of 36,990 Utility mods on ModsFinder, and one of 14,575 Utility mods for Forge. 12,559 mods support Minecraft 1.19.2.
More from DenisD3D
Similar mods
What the author says
Each [[Macros.Macro]] block define a macro. You can duplicate this block as much as you want. - key is the number corresponding to the key you want. The list can be found here: - command is the command to execute when the key is pressed, including the '/' When you're satisfied with your configuration, hit the Reload…
Official listing
- Modrinth page
- modrinth.com/mod/keys4macros
- Owner
- DenisD3D
- Published
- 2021-04-04
- Updated on Modrinth
- 2022-11-19
- Facts verified
- 2026-10-15
