Skip to content

WindWalkSpell

MomoPewpew edited this page Jul 28, 2023 · 12 revisions

Source Code

spell-class: ".buff.WindwalkSpell"

Targeting:

This spell can be cast by/on all living entities.

Description:

This spell lets the caster fly through the air, which works the same as creative mode flying.

Buff spell Uses increment every 20 ticks - hardcoded.

Configuration Options:

Option Description Default Value
fly-speed The speed the player flies. 0.1
launch-speed If this is greater than zero, the caster will be thrown into the air upon casting the spell (and won't fall because they'll be flying). The bigger the number, the higher they'll go. 1
max-y The maximum height y-value a player can fly. 260
max-altitude The maximum altitude (blocks above ground) the player can fly. 100
cancel-on-land Whether the wind walk effect is cancelled upon landing on the ground. true

Spell Default:

Windwalk:
    spell-class: ".buff.WindwalkSpell"
    name: Windwalk
    enabled: true
    cast-item: stick
    fly-speed: 0.1
    launch-speed: 1
    cancel-on-land: false
    cancel-on-logout: true
    cancel-on-teleport: true
    duration: 10
Clone this wiki locally