Cylinder Effect - MomoPewpew/MagicSpells GitHub Wiki
Cylinder Effect
Description: This effect creates a cylinder that can either be hollow or solid.
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 |
particles |
The number of particles displayed in each row. | Integer | 100 |
radius |
Radius of the cylinder. | Float | 1 |
height |
Height of the cylinder. | Float | 3 |
angularVelocityX |
Turns the cylinder by this angle each iteration around the x-axis. | Double | 0.015708 |
angularVelocityY |
Turns the cylinder by this angle each iteration around the y-axis. | Double | 0.018480 |
angularVelocityZ |
Turns the cylinder by this angle each iteration around the z-axis. | Double | 0.020268 |
rotationX |
The rotation of the effect along the x axis. | Double | 0 |
rotationY |
The rotation of the effect along the y axis. | Double | 0 |
rotationZ |
The rotation of the effect along the z axis. | Double | 0 |
enableRotation |
Whether or not the cylinder should rotate. | Boolean | true |
solid |
Whether only the cylinder should be solid or not. | Boolean | true |
orient |
Whether the effect should orient in the direction of the source location. | Boolean | false |
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 | 2 |
iterations |
Number of times to repeat the effect. | Integer | 200 |
Example:
CylinderExample:
spell-class: ".instant.DummySpell"
effects:
Effect1:
position: caster
effect: effectlib
effectlib:
class: CylinderEffect
particle: FLAME
particles: 100
radius: 1
height: 3
angularVelocityX: 0.015708
angularVelocityY: 0.015708
angularVelocityZ: 0.015708
enableRotation: true
solid: true
orient: false
type: REPEATING
period: 2
iterations: 200