Command
Compares the result of a command to a specified value.
Type ID: apoli:command
Caution
This condition is only effective server-side. That means client-side power types such as apoli:climbing, apoli:entity_glow, apoli:shader, etc. won't work with this.
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. |
Example:
"condition": {
"type": "apoli: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.