how to make a mining plant