Command (Block Condition Type)
Runs a command at the block's position and compares its result with a number.
Type ID: apoli:command
Fields
| Field | Type | Default | Description |
|---|---|---|---|
command | String | required | The command to run. |
comparison | Comparison | required | How the command's result, an integer, is compared with compare_to. |
compare_to | Integer | required | The number the result is compared with. |
Examples
"block_condition": {
"type": "apoli:command",
"command": "execute align xyz if entity @e[dy=0,dx=0,dz=0]",
"comparison": ">=",
"compare_to": 1
}This checks whether there is an entity inside the block.