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

Source Code

spell-class: ".buff.HasteSpell"
  • disabled - Plays the effect at caster's location when they stop sprinting.

Targeting:

This spell can only be cast by/on players.

Description:

A buff spell that heavily increases the player's sprint speed.

Buff Uses:

Buff spell Uses increment whenever the player activates sprint.

Configuration:

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

Option Description Type Default
effect-strength How strong the speed granted is. Integer 3
boost-duration The maximum amount of time the speed effect lasts before it expires (in ticks), even if the player is still sprinting. Integer 300
acceleration-amount Amount of accelerations. Integer 0
acceleration-delay Start delay before the first acceleration. Integer 0
acceleration-increase Speed increase per acceleration. Integer 0
acceleration-interval Interval before each acceleration. Integer 0
icon Since 4.0 Beta 13. Toggles effect icon visibility. Boolean true
hidden Toggles particle visibility. Boolean false
ambient Since 4.0 Beta 13. Toggles ambient particle visibility. Boolean false
power-affects-strength Boolean true

Example:

haste:
    spell-class: ".buff.HasteSpell"
    effect-strength: 3
    boost-duration: 300
    duration: 60
    cost:
        - 331 3
    str-cost: 3 redstone
    str-cast-self: You gain unnatural speed!
    str-cast-others: "%a gains unnatural speed!"
    str-fade: You lose your unnatural speed.
Clone this wiki locally