EffectLib Cone - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

class: Cone

Description:

This effect creates a swirly cone extending out from the source location.

Configuration:

Overridden:

Option Default
type "repeating"
particle "flame"
period 1
iterations 200

Other:

Option Description Type Default
lengthGrow Growing per iteration in the length. Float 0.05
angularVelocity Turns the effect by this angle each iteration around the y-axis. Double PI / 16
particles The number of cone-particles that are displayed. Integer 10
radiusGrow Growth in blocks per iteration on the radius. Float 0.006
particlesCone Conesize in particles per cone. Integer 180
rotation Start-angle or rotation of the cone. Double 0
randomize Whether the rotation and angle of the cone should be random on creation. Boolean false

Example:

ConeExample:
    spell-class: ".instant.DummySpell"
    effects:
      Effect1:
        position: caster
        effect: effectlib 
        effectlib:
            class: ConeEffect
            particle: FLAME
            particles: 10
            lengthGrow: 0.05
            radiusGrow: 0.006
            particlesCone: 180
            rotation: 0
            randomize: false
            type: REPEATING
            period: 1
            iterations: 200