Explosive (Damage Condition Type)
Passes when the damage came from an explosion, such as a creeper, TNT, a bed in the Nether or an end crystal.
Type ID: apoli:explosive
Fields
This condition has no fields. Like every condition, it accepts inverted to flip the result.
How it works
It is shorthand for apoli:in_tag with the minecraft:is_explosion damage type tag, so a data pack that adds its own damage type to that tag is matched too.
Example
A blast-proof origin:
{
"type": "apoli:invulnerability",
"damage_condition": { "type": "apoli:explosive" }
}Or half damage instead of none, which usually plays better:
{
"type": "apoli:modify_damage_taken",
"damage_condition": { "type": "apoli:explosive" },
"modifier": { "operation": "multiply_base_multiplicative", "value": -0.5 }
}