Dot Spell - TheComputerGeek2/MagicSpells GitHub Wiki
spell-class: ".targeted.DotSpell"
targeting
cast argument values:
Value | Supported |
---|---|
entity |
true |
location |
false |
entity_from_location |
false |
Spell Effect Positions:
delayed
- Plays the effect at the target's location every damage interval.
Description:
A targeted spell that deals damage over time to a specified target.
Configuration:
Since 4.0 Beta 13 these options support dynamic values through numeric or string expressions.
Option | Description | Type | Default |
---|---|---|---|
delay |
Defines the delay before the first damage is dealt. | Integer | 1 |
interval |
Defines the interval of each damage dealt, in server ticks. | Integer | 20 |
duration |
Defines the spell's duration, in server ticks. | Integer | 200 |
damage |
Defines the amount of damage per hit. | Float | 2 |
ignore-armor |
If true , damage is done by directly modifying the target's health, ignoring armor and resistances. |
Boolean | false |
check-plugins |
Alert all plugins that this damage happened, allowing them to modify the event. | Boolean | true |
power-affects-damage |
Since 4.0 Beta 13. | 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 |
spell-damage-type |
This custom damage type can be used with the Resist spell. | String | |
damage-type |
Defines the damage cause of this spell. | String | "entity_attack" |
Example:
dot:
spell-class: ".targeted.DotSpell"
damage: 1
delay: 10
interval: 10
duration: 60
prevent-knockback: true
spell-damage-type: CONTACT