Damage - apace100/origins-fabric GitHub Wiki
Entity Action. Applies damage to an entity.
Type ID: origins:damage
Fields:
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.
Example:
"entity_action": {
"type": "origins:damage",
"amount": 4,
"source": {
"name": "onFire",
"fire": true,
"bypasses_armor": true
}
}
This action deals 2 hearts of damage as if the target was burning.