Walkway spell - MomoPewpew/MagicSpells GitHub Wiki

Source Code

spell-class: ".buff.WalkwaySpell"

Targeting:

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

Description:

Creates a magical walkway of blocks that always stays ahead of the entity. This spell can be glitchy - use the Windwalk Spell as an alternative.

Buff Uses:

Buff spell Uses increment whenever the player moves.

Configuration:

Option Description Default Value
platform-type What block should the platform be made of oak_wood
size How big the platform is 6

Example:

walkway:
    spell-class: ".buff.WalkwaySpell"
    name: walkway
    description: Summon a moving magical walkway to take you places.
    cast-item: book
    cooldown: 60
    platform-type: oak_wood
    size: 6
    cancel-on-logout: true
    cancel-on-teleport: true
    cost:
        - mana 50
        - oak_wood 1
    use-cost:
        - mana 15
        - oak_wood 1
    use-cost-interval: 15
    str-cost: 50 mana, plus 15 mana and 1 oak wood every 15 blocks
    str-cast-self: You summon a magical walkway.
    str-fade: Your magical walkway disappears.