Damage

Entity Action Type

Applies damage to an entity.

Type IDs: seven-elements:elemental_damage, origins-genshin:elemental_damage

Info

The max health of the entity will be used as the base value for the modifier(s).

Info

See Minecraft Wiki: Damage type and Minecraft Wiki: Damage type tag (Java Edition) for more information about vanilla damage types and damage type tags.

Fields

Field Type Default Description
amount Float The amount of damage to deal.
source Damage Source DEPRECATED Use damage_type instead. See Damage Source (Data Type) for more details.
damage_type Identifier Defines the properties of the damage source that will be dealt, such as part of its death message, and whether it can bypass armor, shield, etc. (via damage type tags.)
modifier Attribute Modifier optional If specified, this modifier will be applied to the damage taken by the entity.
modifiers Array of Attribute Modifiers optional If specified, these modifiers will be applied to the damage taken by the entity.
element Elemental Application The elemental application to apply to the entity.
internal_cooldown Internal Cooldown The internal cooldown attributed to the elemental application.

Examples

"entity_action": {
    "type": "seven-elements:elemental_damage",
    "amount": 4,
    "damage_type": "minecraft:on_fire",
    "element": {
        "element": "PYRO",
        "gauge_units": 1.0
    },
    "internal_cooldown": {
        "tag": "origins-genshin:fire_ability"
    }
}

This example will deal 2 hearts of on_fire damage, which by its tags in vanilla is considered fire damage and bypasses armor.

This also applies 1 gauge unit ↗ of Pyro, so long as the Internal Cooldown ↗ with the tag: origins-genshin:fire_ability and type: seven-elements:default is inactive.