
一款通过按键执行宏命令的模组
功能 :
- 定义用于执行命令的按键。此模组仅需在客户端安装,同时在服务器上也能正常工作。
- 当你按下按键时,该命令会作为聊天消息发送,并由服务器像处理其他任何命令一样进行处理。
- 通过配置文件创建任意数量的宏。
Discord
如果你需要帮助、遇到问题、有任何问题或建议,欢迎加入我的 Discord:
创建宏
要打开配置文件,请打开 Forge 模组列表 GUI,选择 Keys4Macros 并点击 Config 按钮。最后点击 Open config 按钮。
每个 [[Macros.Macro]] 块定义一个宏。你可以根据需要复制此块任意多次。
- key 是你想要使用的按键对应的数字。按键列表可在此处找到:
- command 是按下按键时执行的命令,需包含 '/'
当你满意配置后,点击 Reload Config 按钮或重启游戏即可。
示例配置
以下配置将小键盘的 0 到 3 键设置为切换所有游戏模式:
[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"
杂项
我可以在我的整合包中使用此模组 / 制作关于此模组或使用此模组的视频吗?
可以,只需记得给予署名并链接回官方下载页面,因为它们是唯一安全的链接。你可以自由使用该模组,并将其放入任何你想要的整合包中。你只需要在你告知他人整合包内模组的地方放置指向本页面的链接即可。如果你制作了关于此模组的视频,请确保在视频描述中包含指向本页面的链接。

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 :
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 :
- 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.
评论 0
登录后参与评分
还没有评论,来抢沙发吧