Callback Power Added
Invokes an action upon "adding" the power (1) to the entity.
- "Adding"/"added" in this context means that the power is granted for the first time, or granted with a different source.
Type ID: kaya:callback/power/added
Format
| Field | Type | Default | Description |
|---|---|---|---|
action |
Action | The action to invoke after the power is "added" to the entity. |
Example
{
"type": "kaya:callback/power/added",
"action": {
"type": "kaya:execute_command",
"source": {
"type": "kaya:entity",
"entity": "this"
},
"command": "scoreboard players add @s somethingCoolAndFun 1"
}
}
This example increments the entity's score by 1 on the somethingCoolAndFun scoreboard objective upon adding the power to the entity.
History
| Minecraft | Mod | Changelog |
| 1.21.5 | 0.1.0 | Added the type. |