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 Determines how the result value (an integer) of the executed command should be compared to the specified value.
compare_to Integer The value at which the result value (an integer) of the executed command will be compared 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.