Why not have it so you press the buttom one time and it does the gani crap than it shows a status bar,for example(mining:-----) and it shows the status of the rock(like how much more it needs to be hit) and when the bar goes away the player stops and you get whatever was contained in the rock. This can be used as well for praying/blessing. Same concept just switch the script out a little bit
