forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 69
EffectLib Atom
JasperLorelai edited this page Jul 28, 2024
·
3 revisions
class: Atom
This effect creates a model of an atom with a nucleus and one or more orbitals.
Option | Default |
---|---|
type |
"repeating" |
period |
2 |
iterations |
200 |
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 |
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