Execute Command

Block Action.

Executes a command at the position of the block.

Type ID: apoli:execute_command

Fields

Field Type Default Description
command String The command to execute.

Example

"block_action": {
  "type": "apoli: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.