Skip to content

Sphere Effect

AkitoBurrito edited this page Jan 8, 2023 · 1 revision

Sphere Effect

Source Code

Description: This effect creates a 3D Sphere.

Configuration:

Option Description Type Default Value
particle The name of the particle that is displayed. (uses different particle names compared to general MagicSpells). The list of these particles can be found here. String FLAME
radius The radius of the sphere. Double 0.6
yOffset The offset of the sphere on the y-axis. Double 0
particles The number of particles to display. Integer 50
radiusIncrease The amount to increase the radius of the sphere per tick. Double 0
particleIncrease The amount to increase the number of particles per tick. Integer 0
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 1
iterations Number of times to repeat the effect. Integer 500

Example:

SphereExample:
    spell-class: ".instant.DummySpell"
    effects:
      Effect1:
        position: caster
        effect: effectlib 
        effectlib:
            class: SphereEffect
            particle: FLAME
            radius: 0.6
            yOffset: 0
            particles: 50
            radiusIncrease: 0
            particleIncrease: 0
            type: REPEATING
            period: 1
            iterations: 500
Clone this wiki locally