Atom Effect - MomoPewpew/MagicSpells GitHub Wiki

Atom Effect

Source Code

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

Configuration:

Option Description Type Default Value
particleNucleus The name of the particle that is displayed in the nucleus. (uses different particle names compared to general magicspells). The list of these particles can be found here. String DRIP_WATER
colorNucleus The color of the particle that is displayed in the nucleus if the particle can be color. These particles include SPELL_MOB_AMBIENT, SPELL_MOB and REDSTONE. Hex null
particleOrbital The name of the particle that is displayed in the orbital. (uses different particle names compared to general magicspells). The list of these particles can be found here. String DRIP_LAVA
colorOrbital The color of the particle that is displayed in the orbital if the particle can be color. These particles include SPELL_MOB_AMBIENT, SPELL_MOB and REDSTONE. Hex null
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 0.0393
type The type of effect used. The three types are DELAYED, INSTANT, and REPEATING. String REPEATING
period How long to wait, in ticks, between each iteration. Integer 2
iterations Number of times to repeat the effect. Integer 200

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