LeapSpell - TheComputerGeek2/MagicSpells GitHub Wiki
spell-class: ".instant.LeapSpell"
Description:
An instant spell that propels the caster in a certain direction depending on the options set. Compare this to the Velocity Spell.
Configuration:
Since 4.0 Beta 13 some of these options support dynamic values through numeric or string expressions.
Option | Description | Type | Default | Supported expressions |
---|---|---|---|---|
rotation |
Changes the direction of forward-velocity in degrees (Right: 90, left: -90, back: 180, etc.) |
Float | 0 |
true |
upward-velocity |
The speed at which the player is launched upward. Because of friction, you will need at least some upward velocity to properly move forward on the ground. Negative numbers will send you downward. | Float | 15 |
true |
forward-velocity |
The speed at which the player is launched forward. Negative numbers will send you backwards. | Float | 40 |
true |
power-affects-velocity |
Since 4.0 Beta 13. | Boolean | true |
true |
client-only |
Whether to use packets or not. | Boolean | false |
true |
cancel-damage |
Whether or not the player should ignore the next instance of fall damage when using this spell. | Boolean | true |
true |
add-velocity-instead |
Whether velocity should be added instead of set. | Boolean | false |
true |
land-spell |
Sub-spell to cast upon landing. (Below 4.0 Beta 13 this option only works if you take fall damage.) | String | false |
Example:
leap:
spell-class: ".instant.LeapSpell"
name: leap
cooldown: 6
cast-item: stick
cost:
- mana 10
- feather 1
str-cost: "10 mana, 1 feather"
forward-velocity: 40
upward-velocity: 15
cancel-damage: true