Math Expansion¶
The Math expansion allows you to perform simple to complex math equations.
Download expansion
# Available for Minecraft and Hytale
/papi ecloud download math
Statistics¶
Fetching data...
If this text doesn't change, check that you allow javascript to be executed.
Source Code¶
The Source code of this expansion is available on Codeberg
Placeholders¶
External Placeholders support¶
Placeholders from other expansions can be used by using the {<identifier>_<value>} pattern instead of the usual %<identifier>_<value>% pattern.
Important
Only placeholders returning numbers can work reliably in the expansion.
Using Percent Symbol (%) in Math expression¶
Due to how PlaceholderAPI handles placeholders can you not use the percent symbol directly in math expressions.
However, the Math expansion provides a [prc] placeholder that gets replaced by a % symbol before evaluation the math expression.
Warning
You cannot use [prc] to use %<identifier>_<value>% placeholders in math expressions. Placeholders are parsed before [prc] is.
Use the bracket-based pattern instead.
Special Math Functions¶
EvalEx, the library used by Math expansion for the parsing of expressions, provides so-called functions.
Functions are unique key-words that can be used to perform more complex calculations that could otherwise not be done through normal text.
As an example, to obtain the square root of 100 you would use SQRT(100).
See EvalEx's Functions page for a full list.
Note
Functions are case-insensitive.
Config Options¶
See the Config Options page for available config options of this expansion.
Changelog¶
Latest changes can be found in the following Changelog files on Codeberg:
CHANGELOG.mdfor the Minecraft version.math-hytale/CHANGELOG.mdfor the Hytale version.