Multiple Functions
You can define a list of functions to be executed in sequence. The stop action can be used to end execution immediately.
on-break:
# Function 1
- if-not: hasPermission orestack.generator.harvest
do:
- chatMessage <You have no permission to mine this generator>
- cancelEvent
- stop
# Function 2
- if-not: toolIsSimilar IRON_PICKAXE
do:
- chatMessage <You need an iron pickaxe to mine this generator>
- cancelEvent
- stop
# Function 3
- do: dropItemAtBlock dirt chance=0.5
Last updated