Skip to main content

Type (Damage Condition Type)

Checks whether the damage is of a given damage type.

Type ID: apoli:type

Fields

FieldTypeDefaultDescription
damage_typeIdentifierrequiredThe damage type to match. Start it with # to match a damage type tag instead, as in "#minecraft:is_fire".

Examples

"damage_condition": {
	"type": "apoli:type",
	"damage_type": "minecraft:magic"
}

This checks whether the damage is of the minecraft:magic damage type.

"damage_condition": {
	"type": "apoli:type",
	"damage_type": "#minecraft:is_fire"
}

This checks whether the damage type is in the minecraft:is_fire tag.