Execute Command (Entity Action Type)

Executes a command with the entity as the source (i.e.

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

Type ID: apoli:execute_command

Fields

FieldTypeDefaultDescription
commandStringThe command to execute on the entity.

Examples

"entity_action": {
    "type": "apoli:execute_command",
    "command": "tellraw @a {\"text\": \"Hello world!\", \"color\": \"green\"}"
}

This example will execute a /tellraw command that will print a green-colored “Hello world!” message to all players.