- Added 'goto' action
Code (YAML):
testGotoLine:
- do
: goto 2
- do
: chatMessage <This function will be skipped!
>
- do
: chatMessage <You skipped function 1 and are now on function 2>
- Reworked return and stop actions, stop ends all execution everywhere, return if used inside a function it will only end execution in the current function
Code (YAML):
on-break
:
- giveIronIfPerm
- giveGoldIfPerm
- chatMessage <This will not be sent because stop was used
>
giveIronIfPerm:
- if-not
: hasPermission orestack.iron
do
: return
- do
: giveItemToPlayer IRON_INGOT
giveGoldIfPerm:
- if-not
: hasPermission orestack.gold
do
: stop
- do
: giveItemToPlayer GOLD_INGOT
- Yaml library now uses case sensitive keys
- functions.yml was removed and replaced with a folder
- Added misc.yml, tools.yml and trees.yml inside /functions/ folder
- Modified trees/vanilla/ generators, now if leaves are broken the generator remains unaltered
- Added resetGenerator action, it can be used in on-break
- Fixed 3 compability issues with 1.16.5