ForcebombSpell - TheComputerGeek2/MagicSpells GitHub Wiki
spell-class: ".targeted.ForcebombSpell"
targeting
cast argument values:
Value | Supported |
---|---|
entity |
false |
location |
true |
entity_from_location |
false |
Spell Effect Positions:
special
- Plays the effect at the bomb location when the spell is cast.
Description:
A targeted spell that causes a knock-back effect at the targeted location.
Configuration:
Since 4.0 Beta 13 these options support dynamic values through numeric or string expressions.
Option | Description | Type | Default |
---|---|---|---|
pushback-force |
The strength of the knockback effect. Can accept negative values which will pull people towards the caster instead. | Double | 30 |
additional-vertical-force |
The additional knockback to apply vertically, rather than purely horizontally. | Double | 15 |
max-vertical-force |
The maximum vertical velocity a target can get from this spell. | Double | 20 |
power-affects-force |
Since 4.0 Beta 13. | Boolean | true |
radius |
The radius of the area to deal knockback in. | Double | 3 |
y-offset |
The vertical offset to begin the knockback from. | Double | 0 |
call-target-events |
Whether the spell should call target events. | Boolean | true |
add-velocity-instead |
Change the target's velocity similarly to how they'd be knocked back, rather than just knocking them away. | Boolean | false |
Example:
forcebomb:
spell-class: ".targeted.ForcebombSpell"
name: forcebomb
description: Push back your enemies.
cast-item: blaze_rod
cooldown: 8
range: 15
radius: 3
pushback-force: 30
additional-vertical-force: 15
max-vertical-force: 20
can-target: players,nonplayers
cost:
- mana 30
str-cost: 30 mana
str-cast-self: An explosion of energy pushes your enemies around.
str-no-target: No target found.
effects:
eff1:
position: special
effect: fireworks
height-offset: 1
type: 0
flight: 0
trail: false
flicker: false
colors: FF0000,0000FF
fade-colors: 0000FF