Instant Effect Immunity#
Since v1.0.0
Prevents instant status effects from being applied to the entity with this power.
Type ID: voile:instant_effect_immunity
Fields#
Field | Type | Default | Description |
---|---|---|---|
effect |
Identifier | optional | If specified, only the instant status effect with this namespace and ID cannot be applied to the entity. |
effects |
Array of Identifiers | optional | If specified, only the instant status effects with these namespaces and IDs cannot be applied to the entity. |
inverted |
Boolean | false |
Determines whether the effects specified are used as a blacklist or a whitelist. |
Examples#
{
"type": "voile:instant_effect_immunity",
"effect": "minecraft:instant_health",
}
This example makes the power holder immune to Instant Health.
{
"type": "voile:instant_effect_immunity",
"effect": "minecraft:instant_damage",
"inverted": true
}
This example makes the power holder immune to all instant status effects that are not Instant Damage.