forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 72
AreaEffectSpell
ChronoKeeper edited this page Aug 16, 2019
·
31 revisions
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 |
|---|---|---|---|
| spells | List of spells to cast. | String List | null |
| max-targets | Max targets for the AOE. | Integer | 0 |
| 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 | 0 |
| vertical-radius | Vertical hit radius for the AOE. | Double | 5 |
| horizontal-radius | Horizontal hit radius for the AOE. | Double | 10 |
| point-blank | While set to true, when casted the start location of the aoe will be the caster's location. When it's set to false, the aoe center will be the block the caster was pointing at while casting the spell. | Boolean | true |
| 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 |
| 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 |
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: SWEEP_ATTACK
horiz-spread: 1
vert-spread: 1
count: 10
speed: 0
pain:
spell-class: ".targeted.PainSpell"
damage: 2storm:
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