DamageSpell - TheComputerGeek2/MagicSpells GitHub Wiki
spell-class: ".targeted.DamageSpell"
[!WARNING] Introduced in 4.0 Beta 17.
targeting
cast argument values:
Value | Supported |
---|---|
entity |
true |
location |
false |
entity_from_location |
true |
Description:
Damage spell, utilising Vanilla damage types to control aspects of how the damage is applied to the target.
Configuration:
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 |
Example:
damage:
spell-class: ".targeted.DamageSpell"
damage: 4
damage-type: player_attack
credit-caster: true
spell-damage-type: ""