Command
Executes a command (as the block and at the block), and compares the output to a given value.
Essentially a copy of Command (Entity Action), but for blocks.
Type ID: appli:command
Caution
This block condition has been deprecated by Apoli's block condition of the same name.
Caution
To quote the Origins wiki,
"[t]his condition is only effective server-side. That means client-side power types such as origins:climbing, origins:entity_glow, origins:shader, etc. won't work with this."
Fields
| Field | Type | Default | Description |
|---|---|---|---|
command |
String | The command to be executed. | |
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": "appli:command",
"command": "execute if block ~ ~ ~ minecraft:dirt",
"comparison": "==",
"compare_to": 0
}
This example will check if the block at the block's current position is not dirt.