Skip to content
JasperLorelai edited this page Jul 25, 2023 · 10 revisions

Source Code

Targeting:

This spell can only be cast by/on players.

Description:

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

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