Command

Block Condition Type

Compares the result of the specified command to the specified value at the position of the block.

Type ID: origins:command

Caution

This block condition type only operates on the server-side, meaning that it cannot be used in fields that are evaluated on the client-side.

Fields

Field Type Default Description
command String The command to execute.
comparison Comparison How to compare the stored result of the specified command to the specified value.
compare_to Integer The value to compare the stored result of the specified command to.

Examples

"block_condition": {
    "type": "origins:command",
    "command": "execute align xyz if entity @e[dy=0,dx=0,dz=0]",
    "comparison": ">=",
    "compare_to": 1
}

This example will check if there is an entity inside the block.