Skip to content

Inverted

Inverts the result of another condition.

Type ID: kaya:inverted

Format

Field Type Default Description
condition Condition The condition to invert the result of.

Example

{
    "type": "kaya:inverted",
    "condition": {
        "type": "kaya:is_entity_on_fire",
        "entity": "this"
    }
}

This example will check if the entity provided by the kaya:this_entity context parameter is not on fire.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.