forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 71
EffectLib Donut
JasperLorelai edited this page Nov 19, 2023
·
2 revisions
Description: This effect creates a torus shape.
| 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 |
particles |
The number of particles displayed in each row. | Integer | 8 |
circles |
The number of particles displayed in each row. | Integer | 36 |
particlesCircle |
The number of particles displayed in each circle. | Integer | 10 |
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 |
The rotation of the torus around the x-axis. | Double | 0 |
yRotation |
The rotation of the torus around the y-axis. | Double | 0 |
zRotation |
The rotation of the torus around the z-axis. | Double | 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 | 10 |
iterations |
Number of times to repeat the effect. | Integer | 20 |
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