Skip to content

Callback Power Removed

Invokes an action upon "removing" the power (1) from the entity.

  1. "Removing"/"removed" in this context means that the power is revoked for the Nth or last time.

Type ID: kaya:callback/power/removed

Format

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

Example

{
    "type": "kaya:callback/power/removed",
    "action": {
        "type": "kaya:execute_command",
        "source": {
            "type": "kaya:entity",
            "entity": "this"
        },
        "command": "scoreboard players remove @s somethingCoolAndFun 1"
    }
}

This example decrements the entity's score by 1 on the somethingCoolAndFun scoreboard objective upon "removing" the power from the entity.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.