[spoiler=Code]
on rightclick on sand with a shovel:
open chest with 1 row named "&9Récolte..." to player
wait 3 tick
make gui slot 0 of player with red wool to nothing
wait 0.55 second
make gui slot 1 of player with red wool to nothing
wait 0.55 second
make gui slot 2 of player with red wool to nothing
wait 0.55 second
make gui slot 3 of player with yellow wool to nothing
wait 0.55 second
make gui slot 4 of player with yellow wool to nothing
wait 0.55 second
make gui slot 5 of player with yellow wool to nothing
wait 0.55 second
make gui slot 6 of player with green wool to nothing
wait 0.55 second
make gui slot 7 of player with green wool to nothing
wait 0.55 second
make gui slot 8 of player with green wool to nothing
wait 0.55 second
close player's inventory
wait 1 tick
set block at event-location to air
give 1 sand to player
Voilà, si il y a une erreur prévient moi ;)