Execute Command

Entity Action Type

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 on the entity.

Examples

"entity_action": {
    "type": "origins: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.