Skip to content

UndoDestroySpell

MomoPewpew edited this page Sep 8, 2024 · 4 revisions

Source Code

spell-class: ".targeted.UndoDestroySpell"

Description:

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

Configuration:

Option Description Default Value
radius Radius of the spell. 10
point-blank Should the spell search for Destroyd blocks at the caster's location? true
power-affects-radius Should the radius be affected by the spell's Power? true
search-mode Whether the radius of this spell should detect destroyed block sources source, landed blocks that were thrown by a DestroySpell target, or both. The undo will always affect both the source and the target. This only controls which coordinates will be detected. both
destroy-spells Internal name of the destroy spells. If left blanc, it will affect all DestroySpells. null

Example:

undoDestroy:
    spell-class: ".targeted.UndoDestroySpell"
    point-blank: true
    radius: 5
    search-mode: both
    destroy-spells:
        - destroy1
    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 the location of the thrown block that's getting removed
            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