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"
}
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈