Another way to say "an explosive is used for mining minerals" is "When mining materials, explosives are used."