EffectLib Plot - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

class: Plot

Description:

This effect creates a simple graph of an equation using separate x and y equations. This is primarily intended for testing equations, and not really meant to be used for in-game effects

Configuration:

Overridden:

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

Other:

The equations may use t and i variables:

  • t represents the current tick during an iteration.
  • i represents max-iterations.
Option Description Type Default
xEquation/yEquation The equation to use for X or Y values. If not set, the iteration count will be used. String
zEquation The equation to use for y-values. If not set, 0 will be used. String
xScale/yScale/zScale This is a shortcut to quickly scaling the values. Double 1
persistent This will re-spawn particles as the plot moves to make a solid line. Boolean true