Adds 1.21.2 and 1.21.3 support
Adds selector arguments: x
, y
, z
Fixes bugs:
- Compilation throws an exception due to using a library in which a function doesn't exist in older minecraft versions
distance
selector compares locations without checking if the entity is in the same world- Attributes and effects don't work due to a cast error while loading (affects 1.20.5+)
- Entities using the same classes under the hood all match the
[type]
selector (those entities are not supported anymore, for now) - Some macros throw an exception due to generating wrong bytecode
- Nbt compounds with a suffix as a value without quotes break parsing (
b
,d
,f
,l
,s
)
Update function compiler to have multiple compilation stages, for better code generation
Adds support for macros in [tag]
selector
Fixes bugs:
- Function runs with wrong ordering when calling a vanilla function from compiled function (affects 1.20.3+)
- Translatable text arguments with custom style don't generate style data
execute if|unless function
inside vanilla functions while calling compiled function runs too many times (affects 1.20.3+)- Forking behaves as on bedrock instead of java
- Not all functions are found, some of the time
Adds commands:
scoreboard players enable
title
tellraw
Adds base for macro support, macros are only supported for score holder names, for example $scoreboard players set macro_$(test) objective 1
Adds basic text support (only text
, keybind
, and translate
component types, hoverEvent
and clickEvent
formatting options are also not supported)
Fixes bugs:
execute unless score
runs on the wrong conditionsscoreboard players operation
does not try creating the score if it doesn't exist