Skip to content

Translate

Moves the position of a box with a vector.

Type ID: kaya:translate

Format

Field Type Default Description
box Box Provider The box to translate.
vector Vec3 Provider The translation to apply to the box.

Example

{
    "type": "kaya:translate",
    "box": [
        -4.0,
        -4.0,
        -4.0,
        4.0,
        4.0,
        4.0
    ],
    "vector": {
        "type": "kaya:entity/position",
        "entity": "this"
    }
}

This example creates a bounding box with a size of 8.0 (4 blocks wide/high in every direction) and re-positions it to be relative to the position of the entity provided by the kaya:this_entity context parameter.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.