EffectLib Modified - TheComputerGeek2/MagicSpells GitHub Wiki
class: Modified
Description:
This effect modifies any other effect using equations. Equations can be applied to any parameter of the contained effect. Equations can also be used to move the entire effect around.
Configuration:
Overridden:
Option | Default |
---|---|
type |
"repeating" |
period |
1 |
iterations |
100 |
Other:
The equations may use t
, i
, a
, and b
variables:
t
represents the current tick during an iteration.i
representsmaxIterations
.a
representsvariableA
.b
representsvariableB
.
Option | Description | Type | Default |
---|---|---|---|
effect |
The base configuration of the inner effect. | Configuration Section containing an Effectlib Effect | |
effectClass |
The class name of the effect to modify. Can be left blank if class is set in effect configuration. | String | |
xEquation |
Equation defining the X coordinates over t . |
String | "t" |
yEquation |
Equation defining the Y coordinates over t . |
String | "0" |
zEquation |
Equation defining the Z coordinates over t . |
String | "0" |
variableA |
The starting value of variable a . |
Double | |
variableB |
The starting value of variable b . |
Double | |
orient |
Defines whether to orient the effect in the direction of the source Location. If this is set to true, the X axis will represent "forward". This is only used if setting an x, y, z equation. | Boolean | true |
orientPitch |
Similar to orient , however this is specific to pitch. |
Boolean | false |
parameters |
Effect parameters to modify each tick, paired with an equation used to modify them. | Configuration Section |