forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 68
EffectLib Animated Ball
JasperLorelai edited this page Nov 19, 2023
·
2 revisions
Description: This effect creates an animated swirl that follows the shape of a sphere.
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 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 |
This value determines how much the effect is stretched/compressed along the y axis. | Float | 2 |
zFactor |
This value determines how much the effect is stretched/compressed along the z axis. | Float | 1 |
xOffset |
The offset of the effect along the x axis. | Float | 0 |
yOffset |
The offset of the effect along the y axis. | Float | 0.8 |
zOffset |
The offset of the effect along the z axis. | Float | 0 |
xRotation |
The rotation of the effect along the x axis. | Double | 0 |
yRotation |
The rotation of the effect along the y axis. | Double | 0 |
zRotation |
The rotation of the effect along 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 | 1 |
iterations |
Number of times to repeat the effect. | Integer | 500 |
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