Skip to content

UndoSpell

MomoPewpew edited this page Nov 24, 2024 · 2 revisions

Source Code

spell-class: ".targeted.UndoSpell"

Description:

A targeted spell that undoes ReplaceSpells and DestroySpells near a targeted location. This only affects spells that have a duration.

Configuration:

Option Description Default Value
radius Radius of the spell. 10
point-blank Should the spell search for changed blocks at the caster's location? true
power-affects-radius Should the radius be affected by the spell's Power? true
apply-physics Should a block update be forced when the change is undone? true
spells Internal name of the spells. If left blanc, it will affect all spells. null

Example:

undo:
    spell-class: ".targeted.UndoSpell"
    point-blank: true
    radius: 5
    spells:
        - replace1
    effects:
        fireworks1:
            position: caster
            effect: fireworks
            flicker: yes
            trail: no
            colors: F247BA,F247BA,F247BA
            fade-colors: 43A8BD,43A8BD,43A8BD
            y-offset: 1
            flight: 1
        fireworks2:
            position: target # Target position effects will play at the changed block
            effect: fireworks
            flicker: yes
            trail: no
            colors: 000000,000000,000000
            fade-colors: 000000,000000,000000
            y-offset: 1
            flight: 1
        fireworks3:
            position: special # Special position effects will play at the targeted location (or the casters location if cast with point-blank)
            effect: fireworks
            flicker: yes
            trail: no
            colors: FFFFFF,FFFFFF,FFFFFF
            fade-colors: FFFFFF,FFFFFF,FFFFFF
            y-offset: 1
            flight: 1
Clone this wiki locally