PainSpell - TheComputerGeek2/MagicSpells GitHub Wiki
spell-class: ".targeted.PainSpell"
targeting
cast argument values:
Value | Supported |
---|---|
entity |
true |
location |
false |
entity_from_location |
false |
Description:
Damage spell that deals direct damage to the target.
Configuration:
Since 4.0 Beta 13 these options support dynamic values through numeric or string expressions.
Option | Description | Type | Default |
---|---|---|---|
spell-damage-type |
This is a custom damage type which can be used together with the ResistSpell . It's very optional. |
String | |
damage-type |
Defines the damage cause of this spell. | String | "entity_attack" |
damage |
Defines how much damage should be dealt to. | Float | 4 |
power-affects-damage |
Since 4.0 Beta 13. | Boolean | true |
ignore-armor |
Whether or not the spell should ignore armor that the target is wearing, ignores resistance. | Boolean | false |
check-plugins |
Alert all plugins that this damage happened, allowing them to modify the event. | Boolean | true |
avoid-damage-modification |
Defines if other plugins may modify the damage amount. | Boolean | true |
try-avoiding-anticheat-plugins |
Bypasses Anti-Cheat if necessary. | Boolean | false |
Example:
pain:
spell-class: ".targeted.PainSpell"
name: pain
spell-icon: bone
description: Cause your enemy pain.
cast-item: blaze_rod
cooldown: 5
damage: 4
range: 15
ignore-armor: false
can-target: players,monsters
check-plugins: true
cost:
- mana 10
- health 1
str-cost: 10 mana and a half heart
str-no-target: No target found.