EffectLib Explode - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

class: Explode

Description:

This effect creates a large explosion.

Configuration:

Overridden:

Option Default
type "instant"
speed 0.5

Other:

Option Description Type Default
particle1 The first particle that is displayed in the explosion. Particle "explosion_normal"
particle2 The second particle that is displayed in the explosion. Particle "explosion_huge"
amount The number of smoke-sparks spawned by the explosion. Integer 25
sound The sound effect played by the explosion. Sound "entity_generic_explosion"

Example:

ExplodeExample:
    spell-class: ".instant.DummySpell"
    effects:
      Effect1:
        position: caster
        effect: effectlib 
        effectlib:
            class: ExplodeEffect
            particle1: EXPLOSION_NORMAL
            particle2: EXPLOSION_HUGE
            amount: 25
            sound: ENTITY_GENERIC_EXPLOSION
            type: INSTANT
            speed: 0.5