Execute Command
Executes a command with the entity as the source (i.e. @s will select the entity itself).
Type ID: origins:execute_command
Fields
Field | Type | Default | Description |
---|---|---|---|
command |
String | The command to execute (from the perspective of the entity!). | |
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
"entity_action": {
"type": "origins:execute_command",
"command": "give @s minecraft:dirt 64",
"permission_level": 4
}
This action gives the entity a stack of dirt.