Skip to content

Reach Spell

MomoPewpew edited this page Jul 28, 2023 · 11 revisions

Source Code

spell-class: ".buff.ReachSpell"

Targeting:

This spell can only be cast by/on players.

Description:

A buff spell that lets the player place and (instantly) destroy blocks.

Buff spell Uses increment whenever the player right clicks or left clicks.

Configuration:

Option Description Default Value
range The range, in blocks, which the caster can now place and break. 15
consume-blocks Whether to use blocks in the player's inventory as a cost for placement. true
drop-blocks Whether broken blocks should drop as items. true
disallowed-break-blocks A list of blocks that are not allowed to be broken by this spell. null
disallowed-place-blocks A list of blocks that are not allowed to be placed by this spell. null

Example:

reach:
    spell-class: ".buff.ReachSpell"
    name: reach
    spell-icon: dispenser
    description: Place and destroy blocks from far away.
    cast-item: stick
    cooldown: 120
    duration: 60
    range: 15
    consume-blocks: true
    drop-blocks: true
    disallowed-break-blocks:
        - air
        - bedrock
    disallowed-place-blocks:
        - air
        - bedrock
    cost:
        - mana 50
    str-cost: 50 mana
    str-cast-self: You gain the ability to manipulate the world around you.
    str-fade: You can no longer manipulate the world around you.
Clone this wiki locally