Skip to content

Any Of

Checks if any of the conditions are fulfilled.

Type ID: kaya:any_of

Format

Field Type Default Description
conditions Array of Conditions The conditions to check.

Example

{
    "type": "kaya:any_of",
    "conditions": [
        {
            "type": "kaya:is_entity_on_fire",
            "entity": "actor"
        },
        {
            "type": "kaya:is_entity_invisible",
            "entity": "target"
        }
    ]
}

This example will check if the entity provided by the kaya:actor_entity context parameter is on fire or if the entity provided by the kaya:target_entity context parameter is invisible.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.