EffectLib Square - TheComputerGeek2/MagicSpells GitHub Wiki
Source Code
class: Square
Description:
This effect creates a 2D square.
Configuration:
Option |
Default |
type |
"repeating" |
particle |
"spell_mob" |
iterations |
500 |
period |
1 |
Other:
Option |
Description |
Type |
Default |
radius |
The radius of this sphere or circle, in blocks. |
Double |
0.6 |
yOffset |
The y-offset of the square. |
Double |
0 |
particles |
The number of particles that are displayed. |
Integer |
50 |
radiusIncrease |
The amount to increase the radius per tick. |
Double |
0 |
particleIncrease |
The amount to increase the particles per tick. |
Integer |
0 |
Example:
SquareExample:
spell-class: ".instant.DummySpell"
effects:
Effect1:
position: caster
effect: effectlib
effectlib:
class: SquareEffect
particle: FLAME
particles: 50
radius: 0.6
type: REPEATING
period: 1
iterations: 500