What's New:
- Added entity parameter to
cmd:explode
. The entity will be marked as the "creator" of the explosion and other entities will redirect their anger to the entity if affected by the explosion. - Added fire parameter to
cmd:explode
. Creates fire, if true. - Fixed
double
casts converting numbers to scientific notation. long
andint
casts no longer actually convert to their types, instead they truncate the trailing zeros.
What's New:
- Added
structContainsKey
function to expressions. - Moved custom
random
,lerp
andclamp
functions to BigDecimal. - There was an attempt at optimizing reflective field lookups by caching invalid fields and constructing a lazy class hierarchy which propagates found fields and methods downstream.
What's New:
- Switched to EvalEX for expression parsing.
This comes with a bunch of improvements. The main of which is support for all object fields and methods, for example:
Before you had a limited number of "extractions" you could use on an object, like x
and player/level
, but now, you can specify any field or method:
Old:
/say hi ${{this_entity[x]}}
New:
/say hi ${{this_entity.getX}}
/say hi ${{round(sqrt(abs(level.getSeed)), 0)}}
- Added additional casts to the
$(){{}}
syntax.bool
,int
,double
cmd:arithmetica
now supports casts and returns strings by default. Now it also requires permission level 2.