Skip to content
JasperLorelai edited this page Mar 30, 2022 · 10 revisions

Waterwalk Spell

Source Code

Buff spell that causes the player to hover above the water. It actually activates flying for the player, but prevents them from flying up above the water, and deactivates it if they move over land.

Uses:

  • Buff spell Uses increment whenever every 20 ticks - hardcoded.

Configuration:

Option Description Default Value
speed The speed at which the player walks on water. 0.05

Example:

Waterwalk:
    spell-class: ".buff.WaterwalkSpell"
    speed: 0.05
    duration: 60
    cancel-on-logout: true
    cost:
        - mana 25
        - boat 1
    use-cost:
        - water_lily 1
    use-cost-interval: 50
    str-cost: 25 mana and 1 boat, plus 1 water lily every 50 blocks moved
    str-cast-self: You can now walk on water!
    str-fade: You can no longer walk on water.
Clone this wiki locally