Make sure to start this with pickaxe either in your inventory or equipped.
If the character moves because your depleting the rocks so fast, add a small pause function after the "player condition = is animating", which should give enough time for the rock to come back. If you aren't doing iron ore go to the variable section and edit iron ore to whatever you are doing.
https://pastebin.com/R2gxYEaJ