I am very new to skript and I am wondering how to make a loop stop when the event-block is broken.
Code:
on place:
if event-block is hay bale:
send "&6&lWheat Generator has been placed!" to player
loop all players:
loop all blocks in radius 10 around loop-player:
if loop-block is hay bale:
loop 9999999 times:
wait 5 seconds
drop a wheat named "&a&lWheat" at loop-block's location
on break:
if event-block is hay bale:
send "&6&lWheat Generator has been broken!" to player