ForcetossSpell - MomoPewpew/MagicSpells GitHub Wiki
spell-class: ".targeted.ForcetossSpell"
Description:
Targeted Spell. Throws your opponent.
Configuration:
| Option | Description | Variable Type | Default Value |
|---|---|---|---|
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 |
Example:
forcetoss:
spell-class: ".targeted.ForcetossSpell"
name: forcetoss
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."