Skip to content

Modify Effect Immunity

Modifies whether the entity holding the power should be immune to the afflicted status effect or not.

Type ID: kaya:modify/effect/immunity

Info

This type provides the following context parameters:

Parameter Description
kaya:actor_entity The entity that inflicted the status effect.
kaya:target_entity The entity holding the power.
kaya:applied_effect The inflicted status effect.

Format

No additional fields.

Example

{
    "type": "kaya:modify/effect/immunity",
    "active_condition": {
        "type": "kaya:is_effect_in_tag",
        "tag": "#example:effects_immune_to",
        "effect": "applied_effect"
    }
}

This example will make the entity holding the power immune to any status effect included in the #example:effects_immune_to (data/example/tags/mob_effect/effects_immune_to.json) effect tag.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.