on break:
if event-block is andesite:
cancel event
set event-block to air
give player 1 andesite
if player has 64 andesite:
execute player command "/compress"
command /compress:
trigger:
if player has 64 andesite: #change the andesite to whatever you want and the number
remove 64 andesite from player # andesite and number has to be changed if you change the one above
give player 1 andesite named "&8Super Andesite" # this can obviously be changed aswell