Offset

Block Action.

A meta-action which instead applies the provided Block Action at a position offset from the current position.

Type ID: origins:offset

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": "origins:offset",
    "action": {
        "type": "origins:add_block",
        "block": "minecraft:gravel"
    },
    "y": 1
}

This example offsets the origins: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.