forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 68
ForcetossSpell
JasperLorelai edited this page May 19, 2024
·
12 revisions
spell-class: ".targeted.ForcetossSpell"
Value | Supported |
---|---|
entity |
true |
location |
false |
entity_from_location |
false |
Targeted entity spell that throws your opponent away from the caster (or towards if negative force is used).
Since 4.0 Beta 13 these options support dynamic values through numeric or string expressions.
Option | Description | Type | Default |
---|---|---|---|
damage |
Defines the damage. | Integer | 0 |
vertical-force |
Defines the vertical force. | Float | 10 |
horizontal-force |
Defines horizontal force. | Float | 20 |
rotation |
Defines the degrees to rotate the target. | Float | 0 |
check-plugins |
Defines if events should be registered by other plugins. | Boolean | true |
power-affects-force |
Defines if spell power should affect force. | Boolean | true |
add-velocity-instead |
Defines if the velocity should be added instead of set. | Boolean | false |
avoid-damage-modification |
Defines if damage should be modified by, for example, held items. | Boolean | true |
forcetoss:
spell-class: ".targeted.ForcetossSpell"
description: Magically throw an enemy into the air.
cast-item: blaze_rod
cooldown: 5
range: 15
damage: 0
horizontal-force: 30
vertical-force: 15
can-target: players,monsters
check-plugins: true
cost:
- mana 10
str-cost: 10 mana
str-no-target: No target found.
str-cast-self: You push back your enemy!
str-cast-others: "%a pushes back his enemy."