Offset

Meta Action

Executes the provided Block Action at the position offset from the current position.

Type ID: apoli:offset

Note

Only available as a Block Action

Fields

Field Type Default Description
action Block Action The action to apply 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_action": {
    "type": "apoli:offset",
    "action": {
        "type": "apoli:add_block",
        "block": "minecraft:gravel"
    },
    "y": 1
}

This example offsets the apoli:add_block block action in the positive Y axis, raising the positional context of the block action to be 1 block above to where it initially was.