Code:
on place of wood button:
block at event-location
wait 150 tick
create an explosion of force 1
loop blocks in radius 2 around event-location:
add 1 to {explosiondurability::%loop-block%}
if loop-block is plank:
if {explosiondurability::%loop-block%} is more than or equal to 3:
break loop-block naturally
if loop-block is cobblestone:
if {explosiondurability::%loop-block%} is more than or equal to 10:
break loop-block naturally