In action drag the icon target by resource in a hotbar. Drag a shovel/pickaxe in the window that appears. Set what you want to dig for and how many repeats.
Do know there is a bug that when you drag your tool in the window it won't show but it will be inside it.
When a tool breaks you do need to right click the target by resource icon to add a new tool.
You can learn how to set this all up here at this page :
http://www.spellweave.com/
Go to Kingdom Reborn/client user guide and then press Macro's to have some nice tips how to set things up.
