on rightclick:
if clicked block is "wheat":
if player is holding a hoe:
cancel event
message "{@tag} &aYou succesfully farmed wheat!"
set block to air
give player 1 wheat
set durability of player's tool to (durability of player's tool + 1)
add 1 to {xp.%player%}
set event-block to air
wait 10 seconds
set event-block to crops