Hey! I have this code, but the problem is that it doesn't seem to find the block in the bound about 2/3rds of the time. Does anyone know how to fix this please?
set {_block} to block data of event-block
if world of event-block is "Flat":
add 1 to {attempt}
if location of event-block is not within bound with id "MineArea1" or "MineArea2":
if player does not have permission "bounds.modify":
cancel event
send "&cYou cannot break blocks outside the mines!" to player
stop
else:
send actionbar "You have permission!"
else:
cancel drops
wait "%1/2% seconds" parsed as timespan
add 1 to {works}
send "Block: %{_block}%" to player
set event-block to {_block}
broadcast "%{works}%/%{attempt}%"```