Skip to content

Clear Powers

Clears the powers of an entity.

Type ID: kaya:clear_powers

Format

Field Type Default Description
entity Entity Provider The entity to clear the powers of.

Example

{
    "type": "kaya:clear_powers",
    "entity": {
        "type": "kaya:weighted",
        "entries": [
            {
                "value": "actor",
                "weight": 1
            },
            {
                "value": "target",
                "weight": 1
            }
        ]
    }
}

This example will clear the powers of one out of two entities picked at random with $50\%$ chance each:

  • the entity provided by the kaya:actor_entity context parameter.
  • the entity provided by the kaya:target_entity context parameter.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.