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 | The damage source 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,
"source": {
"name": "onFire",
"fire": true,
"bypasses_armor": true
}
}
This example will deal 2 hearts of onFire
damage that is considered as fire damage, and bypasses armor.