EffectLib Cloud - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

class: Cloud

Description:

This effect creates a puffy cloud.

Configuration:

Overridden:

Option Default
type "repeating"
period 5
iterations 50

Other:

Option Description Type Default
cloudParticle The particle that is displayed for the cloud. Particle "cloud"
cloudColor The color of the particle used for cloudParticle. Color
cloudSpeed The speed of the cloud particles. Float 0
cloudParticles The number of particles that are displayed for the cloud. Integer 50
cloudSize The size of the cloud in blocks. Float 0.7
mainParticle The particle that is displayed for the precipitation. Particle "water_drip"
mainParticles The number of particles that are displayed for the precipitation. Integer 15
particleRadius The radius of the precipitation particles. Float cloudSize - 0.1
yOffset Offset of the effect from the location on the y-axis. Double 0.8
increaseHeight Whether the effect increases its height every iteration. Boolean true

Example:

CloudExample:
    spell-class: ".instant.DummySpell"
    effects:
      Effect1:
        position: caster
        effect: effectlib 
        effectlib:
            class: CloudEffect
            cloudParticle: CLOUD
            cloudParticles: 50
            cloudSpeed: 0
            cloudSize: 0.7
            mainParticle: WATER_DRIP
            mainParticles: 15
            particleRadius: 0.6
            yOffset: 0.8
            increaseHeight: true
            type: REPEATING
            period: 5
            iterations: 50