Block Documentation - run_command

run_command is an event response that will trigger a slash command or a series of slash commands set in an array.

Extra Parameters

run_command can use the following parameters

Name Default Value Type Description
command not set String Slash command to run.
command array not set Array List of slash commands to run.
target self Minecraft Filter The target context to execute against.

Example

"run_command":{
    "command" : "/give @p emerald",
    "command array": [], //not used
    "target" : "self"
}