EffectLib Donut - TheComputerGeek2/MagicSpells GitHub Wiki
Source Code
class: Donut
Description:
This effect creates a torus shape.
Configuration:
Option |
Default |
type |
"repeating" |
particles |
"flame" |
period |
10 |
iterations |
20 |
Other:
Option |
Description |
Type |
Default |
particlesCircle |
Amount of particles inside of a single vertical circle. |
Integer |
10 |
circles |
Amount of circles to build the torus. |
Integer |
36 |
radiusDonut |
The radius of the torus. |
Float |
2 |
radiusTube |
The radius of the tube (the circles on the inside of the torus). |
Float |
0.5 |
xRotation /yRotation /zRotation |
The rotation of the torus around its axis. |
Double |
0 |
Example:
DonutExample:
spell-class: ".instant.DummySpell"
effects:
Effect1:
position: caster
effect: effectlib
effectlib:
class: DonutEffect
particle: FLAME
particles: 8
circles: 36
particlesCircles: 10
radiusDonut: 2
radiusTube: 0.5
xRotation: 0
yRotation: 0
zRotation: 0
type: REPEATING
period: 10
iterations: 20