Energy used in mining can be harvested in order to reduce carbon