Invulnerability (Power Type)

Provides damage immunity to specific damage sources.

Provides damage immunity to specific damage sources.

Type ID: apoli:invulnerability

This power type does not support the apoli:amount in its damage_condition object. If that specific damage condition type is needed, you can use the apoli:modify_damage_taken with an Attribute Modifier that multiplies the damage taken by 0.) ("multiply_total" as the operation and -1 as the value)

Fields

FieldTypeDefaultDescription
damage_conditionDamage Condition TypeSpecifies which damage the player will be immune to.

Examples

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

This example will make the entity immune to fall damage.

apoli:fire_immunity is this power. It is an alias that fills in a fire damage condition for you, so these two are exactly 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 — adding a condition so the immunity only applies while a resource is up, for instance.