i am using this skript but am getting errors, how do i fix?
if tool of event-player is wooden shovel:
cancel event
set {_block} to block at location of event-block
set {_shovel} to tool of event-player
remove 1 durability from {_shovel}
wait 10 seconds
if {_block} is air:
set {_loc} to location of {_block}
set {_loc} to {_loc} with y + 1
if {_loc}'s block is air:
set {_loc}'s block to dirt```
errors: Can't understand this structure: on destroy of grass or on destroy of dirt
Line: on destroy of grass or on destroy of dirt: