Skip to content

Velocity Spell

MomoPewpew edited this page Jul 28, 2023 · 9 revisions

Source Code

spell-class: ".instant.VelocitySpell"

Description:

Instant spell. A spell that sets your velocity upon the direction you are looking at. Spell power affects this spell.

While not officially a targeted spell, VelocitySpell implements "TargetedEntitySpell" and "TargetedEntityFromLocationSpell", so it can be casted on entities through the use of other targeted spells.

Configuration:

Option Description Variable Type Default Value
speed The speed of the velocity. Float 40
cancel-damage Defines if the velocity change should cause fall damage. Boolean true
add-velocity-instead Whether the velocity should be added instead of set. Boolean false

Example:

velocity:
    spell-class: ".instant.VelocitySpell"
    speed: 40
    cancel-damage: false
Clone this wiki locally