Damage

Entity Action Type

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.
modifier Attribute Modifier optional If specified, this modifier will be applied to the damage taken by the 'target' entity.
modifiers Array of Attribute Modifiers optional If specified, these modifiers will be applied to the damage taken by the 'target' entity.

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.