-
Now simple functions no longer need the 'do' keyword, instead you can just type them out immediately:
Code (YAML):
# BEFORE
on-break:
do
:
- givePlayer diamond
- sendChat You mined a diamond!
# AFTER
on-break
:
- givePlayer diamond
- sendChat You mined a diamond!
- This looks particularly better when mixing functions calls and actions:
Code (YAML):
#BEFORE
on-hit
:
- requireAxe
- do
:
- damageTool
- damageGenerator
- sendHologram &7Chop! offsetY=1 rangeX=0.7 rangeY=0.4 rangeZ=0.7 duration=10
# AFTER
on-hit
:
- requireAxe
- damageTool
- damageGenerator
- sendHologram &7Chop! offsetY=1 rangeX=0.7 rangeY=0.4 rangeZ=0.7 duration=10
-
Updated all generators to use this new system.