Skip to content
JasperLorelai edited this page Jan 14, 2024 · 1 revision

Source Code

class: Equation

Description:

This effect uses equations to render a particle each tick. It is capable of displaying parametric equations, rendering multiple particles per tick.

Configuration:

Option Default
type "repeating"
particle "redstone"
period 1
iterations 100

Other:

The equations may use t and t2 variables:

  • t represents the current tick during an iteration.
  • t2 minor ticks during sub equations.
Option Description Type Default
xEquation Equation defining the X coordinates over t during major ticks. String "t"
yEquation Equation defining the Y coordinates over t during major ticks. String "0"
zEquation Equation defining the Z coordinates over t during major ticks. String "0"
variable The variable name used in equations to represent major ticks. String "t"
particles How many steps to take per iteration of major ticks. Integer 1
x2Equation Equation defining the X coordinates over t during minor ticks. String
y2Equation Equation defining the Y coordinates over t during minor ticks. String
z2Equation Equation defining the Z coordinates over t during minor ticks. String
variable2 The variable name used in equations to represent minor ticks. String "t2"
particles2 How many steps to take per iteration of minor ticks. Integer 0
orient Whether to orient the effect in the direction of the source Location. If this is set to true, the X axis will represent "forward". Boolean true
orientPitch Similar to orient, however this is specific to pitch. Boolean true
maxSteps This is the limit for the steps until it starts over. Integer 0
cycleMiniStep If this is true, after cycling the inner equation, it'll be set to 0. Set this to false if you want the miniStep to be saved between major steps. Boolean true
Clone this wiki locally