Skip to main content

Vector (Data Type)

An Object with the X, Y and Z coordinates of a point in space.

Fields

FieldTypeDefaultDescription
xFloat0.0The X coordinate.
yFloat0.0The Y coordinate.
zFloat0.0The Z coordinate.

Examples

"entity_action": {
    "type": "apoli:spawn_particles",
    "particle": {
        "type": "minecraft:block",
        "params": "minecraft:redstone_block"
    },
    "count": 16,
    "speed": 0.0,
    "force": true,
    "spread": {
        "x": 3.0,
        "y": 0.0,
        "z": 3.0
    }
}

A Spawn Particles entity action that spreads particles over a flat area of about 5×0×5 blocks, covering 25 blocks.