Command

Entity Condition.

Compares the result of a command to a specified value.

Type ID: origins:command

Fields:

Field Type Default Description
command String Command to run.
comparison Comparison How to compare the command's result to the specified value.
compare_to Integer Which value to compare the command's result to.
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:

"condition": {
    "type": "origins:command",
    "command": "execute if score @s objective1 = @s objective2",
    "comparison": "==",
    "compare_to": 1
}

This example checks if the entity has the same score in the objective1 and objective2 scoreboard objectives.