Skip to content
JasperLorelai edited this page May 19, 2024 · 10 revisions

Source Code

spell-class: ".targeted.RewindSpell"
Value Supported
entity true
location false
entity_from_location false
  • delayed - Plays the effect at every saved target's location when the rewind happens.
  • special - Plays the effect at every saved target's location, every special-effect-interval.

Description:

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

Configuration:

Since 4.0 Beta 13 some of these options support dynamic values through numeric or string expressions.

Option Description Type Default Supports expressions
tick-interval Interval between saving location (in ticks). Integer 4 true
start-duration Duration of saving the locations (in ticks). Integer 200 true
rewind-interval Interval between rewinding to the locations (in ticks). Integer 2 true
special-effect-interval Interval between playing special effects. Note that this interval is every tick-interval * special-effect-interval ticks. Integer 5 true
delayed-effect-interval Interval between playing delayed effects. Note that this interval is every rewind-interval * delayed-effect-interval ticks. Integer 5 true
rewind-mana Should the spell rewind mana? Boolean false true
rewind-health Should the spell rewind health? Boolean true true
allow-force-rewind Is the caster allowed to rewind himself faster? Boolean true true
spell-on-rewind Sub-spell to cast once the rewind begins. String false

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