forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 72
DamageSpell
JasperLorelai edited this page Aug 6, 2026
·
3 revisions
spell-class: ".targeted.DamageSpell"Warning
Introduced in 4.0 Beta 17.
| Value | Supported |
|---|---|
entity |
true |
location |
false |
entity_from_location |
true |
Damage spell, utilising Vanilla damage types to control aspects of how the damage is applied to the target.
Since 4.0 Beta 13 these options support dynamic values through numeric or string expressions.
| Option | Description | Type | Default |
|---|---|---|---|
damage |
Specifies the amount of damage to deal. | Double | 4 |
damage-type |
Specifies which damage type to deal damage with. Its side effects are determined by what damage type tag it's in, which you can edit with a data pack. | Damage Type |
player_attack for players, mob_attack for non-players, and generic for no caster. |
credit-caster |
Specifies if the damage should be credited to the caster. | Boolean | true |
spell-damage-type |
Optional tag used in other spells. | String |
damage:
spell-class: ".targeted.DamageSpell"
damage: 4
damage-type: player_attack
credit-caster: true
spell-damage-type: ""