Skip to content

RewindSpell

MomoPewpew edited this page Jul 28, 2023 · 7 revisions

Source Code

spell-class: ".targeted.RewindSpell"

Description:

A targeted spell that rewinds the targeted entity in time after a set delay.

Configuration:

Option Description Default Value
tick-interval Interval between saving location (in ticks). 4
start-duration Duration of saving the locations (in ticks). 200
rewind-interval Interval between rewinding to the locations (in ticks). 2
special-effect-interval Interval between playing special effects. 5
delayed-effect-interval Interval between playing delayed effects. 5
rewind-mana Should the spell rewind mana? false
rewind-health Should the spell rewind health? true
allow-force-rewind Is the caster allowed to rewind himself faster? true
spell-on-rewind Sub-spell to cast once the rewind begins. ""

Example:

rewind:
    spell-class: ".targeted.RewindSpell"
    target-self: true
    tick-interval: 4
    start-duration: 200
    rewind-interval: 2
    special-effect-interval: 4
    delayed-effect-interval: 4
    effects:
        eff1:
            position: special
            effect: particles
            particle-name: REDSTONE
            color: FFFF00
            horiz-spread: 0.1
            vert-spread: 0.1
            size: 1
            count: 5
        eff2:
            position: delayed
            effect: particles
            particle-name: REDSTONE
            color: FF00FF
            horiz-spread: 0.1
            vert-spread: 0.1
            size: 1
            count: 5
Clone this wiki locally