Skip to content
Brushette edited this page Mar 11, 2018 · 6 revisions

Equations

Magic uses exp4j in a few places to allow you to specify parameters in terms of equations.

See here for a list of builtin functions: https://www.objecthunter.net/exp4j/#Built-in_functions

In addition, Magic adds a rand(min,max) function for randomizing values.

Equations can be used in the EquationEffect for custom effects, CustomProjectile to control projectile paths, ArmorStandProjectile to control armor stand limbs, and spell parameters.

Attributes can be used in equations.

TODO: Examples!

Clone this wiki locally