Vector (Data Type)

An Object that specifies the X, Y and Z coordinates of a certain point in space.

An Object that specifies the X, Y and Z coordinates of a certain point in space.

Fields

FieldTypeDefaultDescription
xFloat0.0The X coordinate of the point.
yFloat0.0The Y coordinate of the point.
zFloat0.0The Z coordinate of the point.

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 Type) that spawns a cuboid of about 5x0x5 in size, which has a volume of 25 blocks.