Offset
A meta-condition which instead checks the provided Block Condition at a position offset from the current position.
Type ID: origins:offset
Fields:
| Field | Type | Default | Description |
|---|---|---|---|
condition |
Block Condition | The condition to check with the given offset. | |
x |
Integer | 0 |
How much to offset the position on the x-axis. |
y |
Integer | 0 |
How much to offset the position on the y-axis. |
z |
Integer | 0 |
How much to offset the position on the z-axis. |
Example:
"block_condition": {
"type": "origins:offset",
"condition": {
"type": "origins:block",
"block": "minecraft:grass_block"
},
"y": 1
}
This example checks if the block above the block is a grass block.