Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
Command Macro Key

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

1,085
3
Game Mechanics
Utility

Compatibility

Minecraft: Java Edition

1.20.1

Platforms

Forge

Supported environments

Client and server

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Links

Report issues View source

Creators

HuNao
HuNao Member

Details

Licensed MIT
Published last year
Updated last year
DescriptionGalleryChangelogVersions

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

  • single

  • delayed

  • 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\\~~~~~"
  }
]

Modrinth is open source.

feat/theseus/tauri-v2@c5403db

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.