how to mine a mineral