promotional bannermobile promotional banner

Command Macro Key

Do you have any common commands? Do you think it is boring and tedious over and over again, then you can bind shortcut keys to execute commands now

Do you have any common commands? Do you think it is boring and tedious over and over again, then you can bind shortcut keys to execute commands now

 

Macro Type

  1. single
  2. delayed
  3. repeating

 

  • 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
  • You can use the/macro reload command to hot load an update
  • If there is no "/" in the command field, it will be sent as chat text
  • You can use \n as a separator to execute multiple commands consecutively, such as "Hello World\nHello Minecraft"
  • For specific scenarios, the mod provides common placeholders as an alternative, such as "/gamemode creative %player_name%".

Placeholder

player_name
player_pos_x
player_pos_y
player_pos_z
player_pos
player_health
player_food
player_exp
player_level
player_dimension
player_biome
player_facing
player_xRot
player_yRot
player_uuid
 

 

[
{
"macro":"command_macro_key:single",
"command": "/gamemode creative",
"primaryKey": 334,
"modifierKey": 0
},
{
"macro":"command_macro_key:delayed",
"command": "/gamemode creative",
"primaryKey": 334,
"modifierKey": 0,
"delay": 60
},
{
"macro":"command_macro_key:repeating",
"command": "/gamemode creative",
"primaryKey": 334,
"modifierKey": 0,
"repeat": 5,
"interval": 20
},
{
"macro":"command_macro_key:single",
"command": "/gamemode creative",
"primaryKey": 334,
"modifierKey": 0,

//optionalField
//It can only take effect in macros-server.json5 configuration, if there is this field, the permission will be ignored.
"hasOp": true,

//optionalField
//Valid for a specific archive only
"location": ".\\saves\\~~~~~"
}
]

The Command Macro Key Team

profile avatar
  • 4
    Followers
  • 8
    Projects
  • 229.2K
    Downloads

More from XiaoHuNaoView all

  • Create Heat JS project image

    Create Heat JS

    • 34.2K
    • Mods

    Allow to use Kubejs, customize Create's Heat Source Block, HeatLevel.

    • 34.2K
    • March 3, 2026
    • Mods
  • Phase Journey project image

    Phase Journey

    • 190
    • Mods

    PhaseJourney is a stage mod designed for unlocking content through staged control and guiding gameplay flow.

    • 190
    • October 27, 2025
    • Mods
    • +1
  • EnemyBanner project image

    EnemyBanner

    • 178.4K
    • Mods

    EnemyBanner Inspired by the EnemyBanner from the famous game Terraria.

    • 178.4K
    • August 7, 2025
    • Mods
    • +1
  • Heaven Destiny Moment project image

    Heaven Destiny Moment

    • 1.4K
    • Mods

    Provide api for various event creation, such as blood moon, raid, allowing the use of data pack custom

    • 1.4K
    • December 16, 2024
    • Mods
    • +4
  • Create Heat JS project image

    Create Heat JS

    • 34.2K
    • Mods

    Allow to use Kubejs, customize Create's Heat Source Block, HeatLevel.

    • 34.2K
    • March 3, 2026
    • Mods
  • Phase Journey project image

    Phase Journey

    • 190
    • Mods

    PhaseJourney is a stage mod designed for unlocking content through staged control and guiding gameplay flow.

    • 190
    • October 27, 2025
    • Mods
    • +1
  • EnemyBanner project image

    EnemyBanner

    • 178.4K
    • Mods

    EnemyBanner Inspired by the EnemyBanner from the famous game Terraria.

    • 178.4K
    • August 7, 2025
    • Mods
    • +1
  • Heaven Destiny Moment project image

    Heaven Destiny Moment

    • 1.4K
    • Mods

    Provide api for various event creation, such as blood moon, raid, allowing the use of data pack custom

    • 1.4K
    • December 16, 2024
    • Mods
    • +4