Type
Checks whether the damage source is of a certain damage type.
Type ID: origins:type
Fields
Field | Type | Default | Description |
---|---|---|---|
damage_type |
Identifier | The ID of the damage type to compare the damage source to. |
Examples
"damage_condition": {
"type": "origins:type",
"damage_type": "minecraft:magic"
}
This example will check if the damage source is of the minecraft:magic
damage type.