Skip to content

ForcepushSpell

MomoPewpew edited this page Jul 28, 2023 · 7 revisions

Source Code

spell-class: ".instant.ForcepushSpell"

Description:

Instant spell. Pushes away nearby entities from the caster.

Configuration Options:

Option Description Default Value
radius Radius of the push. 3
pushback-force Force of the push. 30
additional-vertical-force Additional vertical force of the push. 15
max-vertical-force Max vertical force of the push. 20
add-velocity-instead Whether the spell should add velocity instead of setting it. false

Example:

forcepush:
    spell-class: ".instant.ForcepushSpell"
    name: forcepush
    cast-item: stick
    cooldown: 20
    radius: 8
    pushback-force: 20
    additional-vertical-force: 20
    max-vertical-force: 20
    description: Pushes away nearby enemies.
    cost:
        - mana 75
        - redstone 5
    str-cost: 75 mana, 5 redstone dust.
    str-cast-self: You push everyone away!
Clone this wiki locally