Skip to content

Vector Component

Provides the component of a vector from a specific axis.

Type ID: kaya:vector/component

Format

Field Type Default Description
vector Vec3 Provider The vector to get a component from.
axis Axis The axis of the component to get.

Example

{
    "type": "kaya:vector/component",
    "vector": {
        "type": "kaya:block/position",
        "block": "used_block"
    },
    "axis": "y"
}

This example provides the Y axis component of the block provided by the kaya:used_block context parameter.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.