forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 71
EffectLib Modified
JasperLorelai edited this page Nov 10, 2024
·
2 revisions
class: ModifiedThis 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.
| Option | Default |
|---|---|
type |
"repeating" |
period |
1 |
iterations |
100 |
The equations may use t, i, a, and b variables:
-
trepresents the current tick during an iteration. -
irepresentsmaxIterations. -
arepresentsvariableA. -
brepresentsvariableB.
| 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 | |
yEquation |
Equation defining the Y coordinates over t. |
String | |
zEquation |
Equation defining the Z coordinates over t. |
String | |
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 |