forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 72
AreaEffectSpell
Padfoot edited this page Jan 16, 2019
·
31 revisions
Qualified Name: com.nisovin.magicspells.spells.targeted.AreaEffectSpell
Interfaces: TargetedLocationSpell
Parent: TargetedSpell
The 'Area of Effect' spell is used for converting, or applying, all spells listed in it's string to an area, of which is defined and limited by it's configuration options.
| Option | Description | Type | Default Value |
|---|---|---|---|
horizontal-radius |
Double | 10 | |
vertical-radius |
Double | 5 | |
point-blank |
While set to true, when casted the source of the aoe will be the caster. When it's set to false, the aoe center will be the block the caster was pointing at while casting the spell. | Boolean | true |
cone |
If point-blank is set to true, which it is by default, this will make the aoe a cone instead of it being 360 degrees around the caster. Best way to explan it is that it works like the sweep attack on swords. Value is specified in degrees. |
Double | |
fail-if-no-targets |
If set to false, if the aoe fails to find targets, it won't play any effects specified on it. | Boolean | true |
max-targets |
Integer | 0 | |
spell-source-in-center |
If point-blank is set to false and this to true, it will attempt to make the source of all targeted spells the center of the aoe. For example, if the aoe casts a HomingMissileSpell, the missile will spawn in the center of the aoe. |
Boolean | false |
spells |
If empty, the spell will error. | String List | |
location-target-modifiers |
String List | ||
entity-target-modifiers |
String List |
sweep:
spell-class: ".targeted.AreaEffectSpell"
cast-item: watch
horizontal-radius: 5
vertical-radius: 3
cone: 45
spells: [pain]
effects:
Sound:
position: caster
sound: entity.player.attack.sweep
Particles:
position: special
effect: particles
forward-offset: 1
height-offset: 1
particle-name: sweepAttack
horiz-spread: 1
vert-spread: 1
count: 10
speed: 0
pain:
spell-class: ".targeted.PainSpell"
damage: 2
storm:
spell-class: ".targeted.AreaEffectSpell"
cast-item: paper
horizontal-radius: 10
vertical-radius: 10
point-blank: false
range: 200
spells: [lightning]
lightning:
spell-class: ".targeted.LightningSpell"
no-damage: true