Goblin Engineer
Creature — Goblin Artificer
When this creature enters, you may search your library for an artifact card, put it into your graveyard, then shuffle.
, Sacrifice an artifact: Return target artifact card with mana value 3 or less from your graveyard to the battlefield.
Jehan Choo
Modern Horizons (MH1)
• #128Rulings
Because targets are chosen for activated abilities before costs (such as "Sacrifice an artifact") are paid, Goblin Engineer's second ability can't target the artifact that will be sacrificed to pay its cost.
(wotc • 2021-03-19)
If a card in a player's graveyard has {X} in its mana cost, X is considered to be 0.
(wotc • 2021-03-19)
Rulings
Because targets are chosen for activated abilities before costs (such as "Sacrifice an artifact") are paid, Goblin Engineer's second ability can't target the artifact that will be sacrificed to pay its cost.
(wotc • 2021-03-19)
If a card in a player's graveyard has {X} in its mana cost, X is considered to be 0.
(wotc • 2021-03-19)