forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 71
DamageSpell
JasperLorelai edited this page Feb 18, 2025
·
2 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. | Damage Type, the behaviour of which is determined by Damage Type Tags |
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: ""