Skip to content

EffectLib Animated Ball

JasperLorelai edited this page Jan 13, 2024 · 2 revisions

Source Code

class: AnimatedBall

Description:

This effect creates an animated swirl that follows the shape of a sphere.

Configuration:

Option Default
type "repeating"
particle "spell_witch"
iterations 500
period 1

Other:

Option Description Type Default
particles The number of particles that are displayed. Integer 150
particlesPerIteration The number of particles displayed in one iteration. Integer 10
size The number of particles displayed in one iteration. Float 1
xFactor This value determines how much the effect is stretched/compressed along the x axis. Float 1
yFactor Same as above for the y axis. Float 2
zFactor Same as above for the z axis. Float 1
xOffset The offset of the effect along the x axis. Float 0
yOffset Same as above for the y axis. Float 0.8
zOffset Same as above for the z axis. Float 0
xRotation/yRotation/zRotation The rotation of the effect along its axis. Double 0

Example:

AnimatedBallExample:
    spell-class: ".instant.DummySpell"
    effects:
      Effect1:
        position: caster
        effect: effectlib 
        effectlib:
            class: AnimatedBallEffect
            particle: FLAME
            particles: 150
            particlesPerIterations: 10
            size: 1
            xFactor: 1
            yFactor: 2
            zFactor: 1
            xOffset: 0
            yOffset: 0.8
            zOffset: 0
            xRotation: 0
            yRotation: 0
            zRotation: 0
Clone this wiki locally