Skip to content

Cube Effect

AkitoBurrito edited this page Jan 16, 2023 · 3 revisions

Cube Effect

Source Code

Description: This effect creates a wireframe cube.

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 8
edgeLength Length of the edges of the cube. Float 3
angularVelocityX Turns the cube by this angle each iteration around the x-axis. Double 0.015708
angularVelocityY Turns the cube by this angle each iteration around the y-axis. Double 0.018480
angularVelocityZ Turns the cube by this angle each iteration around the z-axis. Double 0.020268
enableRotation Whether or not the cube should rotate. Boolean true
outlineOnly Whether only the outline of the cubes are drawn. Boolean true
orient Whether the effect should orient pitch and yaw. 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 5
iterations Number of times to repeat the effect. Integer 200

Example:

CubeExample:
    spell-class: ".instant.DummySpell"
    effects:
      Effect1:
        position: caster
        effect: effectlib 
        effectlib:
            class: CubeEffect
            particle: FLAME
            particles: 8
            edgeLength: 3
            angularVelocityX: 0.015708
            angularVelocityY: 0.018480
            angularVelocityZ: 0.020268
            type: REPEATING
            period: 5
            iterations: 200
Clone this wiki locally