Execute Command

Block Action.

Executes a command at the position of the block.

Type ID: origins:execute_command

Fields

Field Type Default Description
command String The command to execute.
permission_level Integer 4 The permission level to use for the command. 0 is a "survival player", anything higher emulates some form of operator. See Minecraft Wiki (op-permission-level) for details.

Example

"block_action": {
  "type": "origins:execute_command",
  "command": "summon minecraft:item ~ ~ ~ {Item:{id:\"minecraft:wheat\",Count:1}}"
}

Creates a wheat item at the position of the block the action is executed on.