Skip to main content

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

FieldTypeDefaultDescription
effectIdentifieroptionalIf set, the status effect the entity is immune to.
effectsArray of IdentifiersoptionalIf set, the status effects the entity is immune to.
invertedBooleanfalseIf 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.