Skip to content

Callback Power Revoked

Invokes an action upon revoking the power for the last time from the entity.

Type ID: kaya:callback/power/revoked

Format

Field Type Default Description
action Action The action to invoke after the power is revoked from the entity.

Example

{
    "type": "kaya:callback/power/granted",
    "action": {
        "type": "kaya:execute_command",
        "source": {
            "type": "kaya:entity",
            "entity": "this"
        },
        "command": "tag @s remove init"
    }
}

This example removes the init tag from the entity upon the power being revoked.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.