Effect Immunity (Power Type)
Stops status effects from being applied to the entity that has the power.
Type ID: apoli:effect_immunity
note
Immunity is checked when an effect is applied, and while the power is active it also removes any matching effect the entity already has. So when the power's condition starts to hold, an effect the entity picked up earlier is removed instead of running out.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
effect | Identifier | optional | If set, the status effect the entity is immune to. |
effects | Array of Identifiers | optional | If set, the status effects the entity is immune to. |
inverted | Boolean | false | If true, the entity is immune to every status effect except the listed ones. |
Examples
{
"type": "apoli:effect_immunity",
"effects": [
"minecraft:weakness",
"minecraft:strength"
]
}This makes the entity immune to Weakness and Strength.