Modify Damage Invulnerability
Modifies whether the entity holding the power should be invulnerable to certain damage sources.
Type ID: kaya:modify/damage/invulnerability
Info
This type provides the following context parameters:
| Parameter | Description |
|---|---|
kaya:actor_entity |
The attacker entity or none if there was no attacker. |
kaya:target_entity |
The entity that was attacked (the entity holding the power.) |
kaya:taken_damage/source |
The damage source dealt to the attacked entity. |
kaya:damaging_entity |
The projectile used for the attack (or the attacker if no projectiles are used.) |
kaya:direct_damaging_entity |
The owner of the projectile used for the attack (or the attacker if no projectiles are used.) |
Example
{
"type": "kaya:modify/damage/invulnerability",
"active_condition": {
"type": "kaya:is_entity_sneaking",
"entity": "this"
}
}
This example makes the entity invulnerable to everything if they're sneaking.
History
| Minecraft | Mod | Changelog |
| 1.21.5 | 0.1.0 | Added the type. |