StunSpell - MomoPewpew/MagicSpells GitHub Wiki
spell-class: ".targeted.StunSpell"
Description:
A targeted spell that stuns the target both from moving and looking around.
Configuration:
| Option | Description | Variable Type | Default Value |
|---|---|---|---|
duration |
Duration of the stun defined in server ticks. | Integer | 200 |
interval |
Sets the interval of applying the stun, defined in server ticks. | Integer | 5 |
stun-monitor |
Defines if the stun spell should stun the target's monitor movement. | Boolean | true |
stun-body |
Defines if the stun spell should stun the target's body movement. | Boolean | true |
use-target-location |
Defines whether the target should be teleported to the location they were at when they were targeted (true) or if the location they moved from (false). | Boolean | true |
Example:
Stun:
spell-class: ".targeted.StunSpell"
cast-item: stick
duration: 120
interval: 5
str-cast-target: "%a has stunned you."
str-cast-self: "You have stunned %t."