If you don’t actually sacrifice the Goblin (because it was removed from the battlefield before the ability resolved, for example), no damage is dealt.

Artwork
Loading artwork…
Ib Halfheart, Goblin Tactician
Jumpstart 2022 · #554 · EN
Nonfoil—Foil—
Card rules
Whenever another Goblin you control becomes blocked, sacrifice it. If you do, it deals 4 damage to each creature blocking it.
Sacrifice two Mountains: Create two 1/1 red Goblin creature tokens.
3/2
"Everybody but me—CHARGE!"
Rare · Illustrated by Wayne Reynolds
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
PreDH 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
Pauper Not Legal
Pauper Commander Not Legal
Pioneer 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