Skip to content

Lightwalk Spell

MomoPewpew edited this page Jul 28, 2023 · 15 revisions

Source Code

spell-class: ".buff.LightwalkSpell"

Targeting:

This spell can only be cast by/on players.

Description:

A buff spell that lights up the player's path.

Buff spell Uses increment whenever the player moves.

Configuration:

Option Description Default Value
block-type Block used as the light source. light
allowed-types Material list to allow the light block to spawn. Due to default block changes, the only option is air. null
y-offset Offset of the light block along the y-axis. 0

Example:

glowstone-walk:
    spell-class: ".buff.LightwalkSpell"
    cast-item: golden_boots
    description: Light your path.
    block-type: glowstone
    y-offset: -1
    allowed-types:
        - grass_block
    cost:
        - mana 25
        - torch 3
    use-cost:
        - torch 1
    use-cost-interval: 25
    str-cost: 25 mana and 3 torches, plus 1 torch occasionally
    str-cast-self: Light appears at your feet.
    str-fade: The light at your feet goes out.

light-walk:
    spell-class: ".buff.LightwalkSpell"
    block-type: light[level=15]
    y-offset: 0
    allowed-types: [air]
Clone this wiki locally