Skip to content

LeapSpell

MomoPewpew edited this page Jul 28, 2023 · 13 revisions

Source Code

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 Options:

Option Description Default Value
rotation Changes the direction of forward-velocity in degrees (Right: 90, left: -90, back: 180, etc.) 0
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. 15
forward-velocity The speed at which the player is launched forward. Negative numbers will send you backwards. 40
client-only Whether to use packets or not. false
cancel-damage Whether or not the player should ignore the next instance of fall damage when using this spell. true
add-velocity-instead Whether velocity should be added instead of set. false
land-spell Sub-spell to cast upon landing. (Only works if you take fall damage). ""

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
Clone this wiki locally