Skip to content

Constant

Provides a constant status effect instance.

Type ID: kaya:constant

Format

Field Type Default Description
value Status Effect Instance The status effect instance value to provide.
Tip

This type can be inlined by specifying a status effect instance.

Example

{
    "type": "kaya:constant",
    "value": {
        "id": "minecraft:poison",
        "duration": 200
    }
}
{
    "id": "minecraft:poison",
    "duration": 200
}

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.