Skip to content

Commit

Permalink
CHANGELOG.md and bump version.
Browse files Browse the repository at this point in the history
  • Loading branch information
melontini committed Apr 18, 2024
1 parent 6f84eb1 commit a2868b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 22 deletions.
24 changes: 3 additions & 21 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
### What's New:

* Switched to [EvalEX](https://ezylang.github.io/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.
* Added `structContainsKey` function to expressions.
* Moved custom `random`, `lerp` and `clamp` 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.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ minecraft_version=1.20.1
yarn_mappings=1.20.1+build.10
loader_version=0.15.7
# Mod Properties
mod_version=0.2.0
mod_version=0.2.1
maven_group=me.melontini
archives_base_name=commander
# Dependencies
Expand Down

0 comments on commit a2868b0

Please sign in to comment.