Redirect
When using the COMMAND_REDIRECT command mode, it creates a new command alias that redirects to an existing command along with its trailing command arguments.
Create a command alias using COMMAND_REDIRECT
COMMAND_REDIRECTTo begin, we must set our command mode to COMMAND_REDIRECT.
JSON or JSON5
{
"schemaVersion": 1,
"commandMode": "COMMAND_REDIRECT"
}TOML
schemaVersion = 1
commandMode = "COMMAND_REDIRECT"YAML
schemaVersion: 1
commandMode: COMMAND_REDIRECTWith the command mode set, we can now define our new command.
JSON or JSON5
{
"schemaVersion": 1,
"commandMode": "COMMAND_REDIRECT",
"command": "s"
}TOML
YAML
Finally, we must choose the existing command that our new command will redirect to. In this case, I have chosen the /say command.
JSON or JSON5
TOML
YAML
Examples
Time Command
JSON or JSON5
TOML
YAML
Scoreboard Command
JSON or JSON5
TOML
YAML
Last updated
Was this helpful?