forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 72
StunSpell
JasperLorelai edited this page May 19, 2024
·
10 revisions
spell-class: ".targeted.StunSpell"
-
orbit
- Plays the effect on the target's location while the stun is active. -
buff
- Same as above. -
buffeffectlib
- Same as above, but it's highly recommended to be used for a position with EffectLib effects.
Value | Supported |
---|---|
entity |
true |
location |
false |
entity_from_location |
false |
A targeted spell that stuns the target both from moving and looking around.
Since 4.0 Beta 13 some of these options support dynamic values through numeric or string expressions.
Option | Description | Type | Default | Supports Expressions |
---|---|---|---|---|
duration |
Duration of the stun defined in server ticks. | Integer | 200 |
true |
power-affects-duration |
Since 4.0 Beta 13. | Boolean | true |
true |
interval |
Sets the interval of applying the stun, defined in server ticks. | Integer | 5 |
false |
stun-monitor |
Defines if the stun spell should stun the target's monitor movement. | Boolean | true |
true |
stun-body |
Defines if the stun spell should stun the target's body movement. | Boolean | true |
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 |
true |
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."