Forsaken Miner's last ability triggers only if Forsaken Miner is in your graveyard at the moment you cast a spell, activate an ability, or put a triggered ability on the stack with one or more targets that constitute a crime. For example, if you cast a sorcery spell that destroyed two target creatures and your targets were a creature controlled by an opponent and Forsaken Miner, Forsaken Miner's ability won't trigger. However, if you cast a spell with an additional cost of "Sacrifice a creature" and you sacrifice Forsaken Miner to pay that cost, Forsaken Miner's ability will trigger as long as you committed a crime with that spell.