Skip to content

Dynamic

Returns the boolean value of a boolean provider as the result.

Type ID: kaya:dynamic

Format

Field Type Default Description
value Boolean Provider The boolean to return as the result.

Example

{
    "type": "kaya:dynamic",
    "value": {
        "type": "kaya:weighted",
        "entries": [
            {
                "value": true,
                "weight": 1
            },
            {
                "value": false,
                "weight": 2
            }
        ]
    }
}

This example will return true 33.33% of the time and false 66.66% of the time.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.