Skip to content

Offset

Offsets a vec3 by adding another vec3.

Type ID: kaya:offset

Format

Field Type Default Description
vector Vec3 Provider The vec3 to offset.
offset Vec3 Provider The vec3 to use as the offset.

Example

{
    "type": "kaya:offset",
    "vector": {
        "type": "kaya:entity/position",
        "entity": "this"
    },
    "offset": [
        0.0,
        -1.0,
        0.0
    ]
}

This example provides the position of the entity provided by the kaya:this_entity context parameter, offset by 1 block under.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.