介绍
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.
常见问题
Keys4Macros 支持哪些 Minecraft 版本?
Keys4Macros 支持 Minecraft Java 版 1.16.1–1.19.2,共 11 个版本,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
Keys4Macros 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。

评论
登录后评论和评分