Mining for metals using Nature’s machines