EffectLib Big Bang - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

class: BigBang

Description:

This effect creates a big explosion with loud sounds.

Configuration:

Overridden:

Option Default
color ff0000
type "repeating"
period 2
iterations 400
asynchronous false

Other:

Option Description Type Default
fireworkType The type of firework shape used for the effect. Firework Type "burst"
color The primary color of the effect. Color #ff0000
color2 The secondary color of the effect. Color #ffa500
color3 The tertiary color of the effect. Color #000000
fadeColor The fade color of the effect. Color #000000
intensity This value determines how many individual effects are added to the firework. Integer 2
radius The radius of the explosions created by this effect in blocks. Float 2
explosions The number of explosions created per iteration of this effect. Integer 10
soundInterval The interval between the sound that is played. Integer 5
sound The sound played by this effect. Sound "entity_generic_explode"
soundVolume The volume of the sound this effect plays. Float 100
soundPitch The pitch of a sound effect. Values greater than 1 will increase pitch, values less than 1 will lower pitch. Float 1

Example:

BigBangExample:
    spell-class: ".instant.DummySpell"
    effects:
      Effect1:
        position: caster
        effect: effectlib 
        effectlib:
            class: BigBangEffect
            fireworkType: BURST
            color: RED
            color2: ORANGE
            color3: BLACK
            fadeColor: BLACK
            intensity: 2
            radius: 2
            explosions: 10
            soundInterval: 5
            sound: ENTITY_GENERIC_EXPLODE
            soundVolume: 100
            soundPitch: 1
            type: REPEATING
            period: 2
            iterations: 400