Skip to content

Lifewalk Spell

MomoPewpew edited this page Jul 28, 2023 · 10 revisions

Source Code

spell-class: ".buff.LifewalkSpell"

Targeting:

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

Description:

A buff spell that causes flowers and shrubbery to grow where you walk.

Buff spell Uses increment on tick-interval.

Configuration:

Option Description Default Value
tick-interval How often, in ticks, the spell should update the caster's position to attempt to place more flowers and shrubs. 15
blocks material list with its chance to spawn null

Example:

lifewalk:
    spell-class: ".buff.LifewalkSpell"
    name: lifewalk
    description: Flowers grow in your footsteps!
    cast-item: book
    tick-interval: 15
    blocks:
        - dandelion 25
        - poppy 50
    cost:
        - mana 25
        - poppy 1
        - dandelion 1
    use-cost:
        - dandelion 1
    use-cost-interval: 25
    str-cost: 25 mana, 1 poppy, 1 dandelion, plus 1 flower every so often
    str-cast-self: Flowers grow in your footsteps!
    str-cast-others: Flowers grow in %a's footsteps!
    str-fade: Flowers no longer grow in your footsteps.
Clone this wiki locally