/
User Changes:
This feature allows adding common expressions to a library where each is identified using an Identifier.
{
"replace": false, // Can be omitted.
"expressions": {
"test:cool_expression": "score * 2.5",
"test:boolean_expression": "level.isDay && !level.isRaining"
}
}
Later on, these expressions can be evaluated inside other expressions using the library container, like so:
sqrt(library.my_id:some_value) * library.my_id:other_value
Or in execute/scoreboard brigadier commands using cmd:library.
Prefer using the library in Brigadier commands!
It does not require parsing the expression in-place!
Dev Changes:
api package.evalex and mapping-io from pom.xmlLongExpression. Similar to Arithmetica and BooleanExpression, but for longs!Arithmetica, BooleanExpression and BrigadierMacro.Expression.Result#NULL.Other Changes:
BooleanExpression instances.