Skip to content
JasperLorelai edited this page May 19, 2024 · 15 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 Uses:

Buff spell Uses increment every 20 ticks - hardcoded.

Configuration:

Since 4.0 Beta 13 some of these options support dynamic values through numeric or string expressions.

Option Description Type Default Supports Expressions
always-fly Since 4.0 Beta 13. When true, the target of the spell cannot land. Boolean false false
enable-max-y Since 4.0 Beta 13. This fixes a bug where you could not set max-y to be below Y level 0. Boolean true true
fly-speed The speed the player flies. Float 0.1 true
constant-fly-speed Since 4.0 Beta 13. Defines expression evaluation behaviour. Boolean true true
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. Float 1 true
max-y The maximum height y-value a player can fly. Double 260 true
constant-max-y Since 4.0 Beta 13. Defines expression evaluation behaviour. Boolean true true
max-altitude The maximum altitude (blocks above ground) the player can fly. Double 100 true
constant-max-altitude Since 4.0 Beta 13. Defines expression evaluation behaviour. Boolean true true
cancel-on-land Whether the wind walk effect is cancelled upon landing on the ground. Boolean true false

Example:

Windwalk:
    spell-class: ".buff.WindwalkSpell"
    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