Damage
Applies damage to an entity.
Type ID: origins:damage
Fields
| Field | Type | Default | Description |
|---|---|---|---|
amount |
Float | The amount of damage to deal. | |
source |
Damage Source | DEPRECATED | Use damage_type instead. More information here. |
damage_type |
Identifier | The damage type to be used. Controls e.g. the death message, invulnerabilities (e.g. towards fire), or whether armor is taken into account. |
Examples
"entity_action": {
"type": "origins:damage",
"amount": 4,
"damage_type": "minecraft:on_fire"
}
This example will deal 2 hearts of on_fire damage, which by its tags in vanilla is considered fire damage and bypasses armor.