Skip to content

Constant

Provides a constant NBT value.

Type ID: kaya:constant

Format

Field Type Default Description
value NBT The NBT value to provide.
Tip

This type can be inlined by specifying an NBT.

Example

{
    "type": "kaya:constant",
    "value": {
        "Items": [
            {
                "id": "minecraft:diamond",
                "count": 1,
                "Slot": 0
            }
        ]
    }
}
{
    "Items": [
        {
            "id": "minecraft:diamond",
            "count": 1,
            "Slot": 0
        }
    ]
}

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.