Execute Command

Entity Action.

Executes a command with the entity as the source (i.e. @s will select the entity itself).

Type ID: apoli:execute_command

Fields

Field Type Default Description
command String The command to execute (from the perspective of the entity!).

Example

"entity_action": {
  "type": "apoli:execute_command",
  "command": "give @s minecraft:dirt 64"
}

This action gives the entity a stack of dirt.