
Keys4Macros
A mod to execute macros command with a key
About this Mod
A mod to execute macros command with a key
Features :
- Define key to execute command. This mod is only needed on the client and work well on server too.
- When you press the key. The command is sent as a chat message and proceded by the server like any other command.
- Create as many macros as you want through a configuration file.
Discord
Feel free to join my discord if you need help or fi you have any issue, any questions or any suggestions : https://discord.gg/rzzd76c
Create a macro
To open the configuration file, open the forge mod list GUI, select Keys4Macros and hit the Config button. Finally hit the Open config button.
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 : https://www.glfw.org/docs/3.3/group__keys.html
- command is the command to execute when the key is pressed, including the '/'
When you're satisfied with your configuration, hit the Reload Config button or restart the game.
Example configuration
The following configuration set the numpad key 0 to 3 to switch between all the gamemodes :
[Macros]
[[Macros.Macro]]
key = 320
command = "/gamemode adventure"
[[Macros.Macro]]
key = 321
command = "/gamemode survival"
[[Macros.Macro]]
key = 322
command = "/gamemode creative"
[[Macros.Macro]]
key = 323
command = "/gamemode spectator"
Misc
Can I use this mod in my mod pack / make a video on or with this mod ?
Yes, just remember to give credit and link back to the official download page, since they're the only links that are SAFE. You can use the mod freely, and put it in every modpack you want. You just need to put a link to this page, in the place where you tell people the mods in your modpack. If you make a video on this mod make sure to put a link to this page in the decription of the video.
Available Versions
How to Install Keys4Macros on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set forge Loader
In the panel under "Egg", select the forge loader and matching Minecraft version (1.19.2).
Install Mod
Open the mod browser in the dashboard and search for "Keys4Macros". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.19.2, 1.19.1, 1.19 (+8 more)
Server-side
✗ UnsupportedRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Keys4Macros server crashes on startup – what to do?
Most common cause: wrong forge version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.19.2). You can switch loaders with one click in the panel.
Is Keys4Macros compatible with forge?
Keys4Macros officially supports forge for Minecraft 1.19.2, 1.19.1, 1.19. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with Keys4Macros – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Keys4Macros consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install Keys4Macros with just one click on your server.
