Skip to content

Constant

Provides a constant box value.

Type ID: kaya:constant

Format

Field Type Default Description
min Vec3 Determines the minimum bounds of the box.
max Vec3 Determines the maximum bounds of the box.
Tip

This type can be inlined by specifying an array of 6 floats.

Example

{
    "type": "kaya:constant",
    "min": {
        "x": 0.0,
        "y": 0.0,
        "z": 0.0
    },
    "max": [
        4.0,
        4.0,
        4.0
    ]
}
[
    0.0,
    0.0,
    0.0,
    4.0,
    4.0,
    4.0
]

This example provides a box that's 4 blocks tall, 4 blocks wide, and 4 blocks deep (with a volume of 64 blocks.)

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.