Skip to main content

Invulnerability (Power Type)

Makes the entity immune to damage from specific sources.

Type ID: apoli:invulnerability

note

This power doesn't support apoli:amount in its damage_condition. If you need to check the amount, use apoli:modify_damage_taken with a modifier that multiplies the damage by 0 ("multiply_total" as the operation and -1 as the value).

Fields

FieldTypeDefaultDescription
damage_conditionDamage Condition TypeThe damage the entity is immune to.

Examples

{
  	"type": "apoli:invulnerability",
	"damage_condition": {
		"type": "apoli:name",
		"name": "fall"
	}
}

This makes the entity immune to fall damage.

note

apoli:fire_immunity is this power. It is an alias that fills in a fire damage condition for you, so these two are the same power:

{ "type": "apoli:fire_immunity" }
{
  "type": "apoli:invulnerability",
  "damage_condition": { "type": "apoli:in_tag", "tag": "minecraft:is_fire" }
}

Write the second form when you want to narrow it further, for instance with a condition so the immunity only applies while a resource is above zero.