EffectLib Atom - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

class: Atom

Description:

This effect creates a model of an atom with a nucleus and one or more orbitals.

Configuration:

Overridden:

Option Default
type "repeating"
period 2
iterations 200

Other:

Option Description Type Default
particleNucleus The name of the particle that is displayed in the nucleus. Particle "drip_water"
colorNucleus The color of the particle that is displayed in the nucleus if the particle can be colored. Color
particleOrbital The name of the particle that is displayed in the orbital. Particle "drip_lava"
colorOrbital The color of the particle that is displayed in the orbital if the particle can be colored. Color
radius The radius of the atom. Double 3
radiusNucleus The radius of the nucleus as a fraction of the atom-radius. Float 0.2
particlesNucleus The number of particles to be spawned in the nucleus per iteration. Integer 10
particlesOrbital The number of particles to be spawned in the orbitals per iteration. Integer 10
orbitals The number of orbitals around the nucleus. Integer 3
rotation The rotation around the Y-axis. Double 0
orient Whether or not to orient the direction of the source location. Boolean false
angularVelocity Velocity of the orbitals. Double PI / 80

Example:

AtomExample:
    spell-class: ".instant.DummySpell"
    effects:
      Effect1:
        position: caster
        effect: effectlib 
        effectlib:
            class: AtomEffect
            particleNucleus: DRIP_WATER
            particleOrbital: DRIP_LAVA
            radius: 3
            radiusNucleus: 0.2
            particlesNucleus: 10
            particlesOrbital: 10
            orbitals: 3
            rotation: 0
            orient: false
            angularVelocity: 0.0393