On Break
Triggered when a generator block is broken.
on-break:
# Function 1
- if-not: blockTypeEquals dirt
do:
- sendChat <You can only mine dirt.>
- cancelEvent # Cancel the event so the generator stays on this stage
- stop
# Function 2
- do: sendChat <You mined dirt.>
Last updated