ForcetossSpell - TheComputerGeek2/MagicSpells GitHub Wiki
spell-class: ".targeted.ForcetossSpell"
targeting
cast argument values:
Value | Supported |
---|---|
entity |
true |
location |
false |
entity_from_location |
false |
Description:
Targeted entity spell that throws your opponent away from the caster (or towards if negative force is used).
Configuration:
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 |
Example:
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."