If the target creature is an illegal target when Liturgy of Blood tries to resolve, it won't resolve and none of its effects will happen. You won't add mana.

Artwork
Loading artwork…
Liturgy of Blood
Battlebond · #148 · EN
Nonfoil—Foil—
Card rules
Destroy target creature. Add 

.
"You harbor such vast potential. It would be such a shame to let you die of old age." —Zul Ashur, lich lord
Common · Illustrated by Zack Stella
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Penny Legal
Pioneer Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Old School Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
Liturgy of Blood isn't a mana ability and uses the stack. Players can respond to it by casting spells and activating abilities.