EffectLib Sphere - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

class: Sphere

Description:

This effect creates a 3D Sphere.

Configuration:

Overridden:

Option Default
type "repeating"
particle "spell_mob"
iterations 500
period 1

Other:

Option Description Type Default
radius The radius of the sphere. Double 0.6
yOffset The offset of the sphere on the y-axis. Double 0
particles The number of particles to display. Integer 50
radiusIncrease The amount to increase the radius of the sphere per tick. Double 0
particleIncrease The amount to increase the number of particles per tick. Integer 0

Example:

SphereExample:
    spell-class: ".instant.DummySpell"
    effects:
      Effect1:
        position: caster
        effect: effectlib 
        effectlib:
            class: SphereEffect
            particle: FLAME
            radius: 0.6
            yOffset: 0
            particles: 50
            radiusIncrease: 0
            particleIncrease: 0
            type: REPEATING
            period: 1
            iterations: 500