ForcepushSpell - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

spell-class: ".instant.ForcepushSpell"

Description:

Instant spell. Pushes away nearby entities from the caster.

Configuration:

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

Option Description Type Default
radius Radius of the push. Double 3
pushback-force Force of the push. Double 30
additional-vertical-force Additional vertical force of the push. Double 15
max-vertical-force Max vertical force of the push. Double 20
power-affects-force Since 4.0 Beta 13. Boolean true
add-velocity-instead Whether the spell should add velocity instead of setting it. Boolean 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!