Execute Command - apace100/origins-fabric GitHub Wiki
Entity Action. Executes a command with the entity as the source (i.e. @s
will select the entity itself).
Type ID: origins:execute_command
Fields:
command
, string: The command to execute (from the perspective of the entity!).
permission_level
, int, default = 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.