For cards in your library with X in their mana costs, X is considered to be 0.

Artwork
Loading artwork…
Sifter Wurm
Commander Legends · #254 · EN
Nonfoil—Foil—
Card rules
Trample
When this creature enters, scry 3, then reveal the top card of your library. You gain life equal to that card's mana value.
7/7
"Rhonas's monument belongs to the wurms now. Look elsewhere for refuge." —Arnun, vizier of the menagerie
Uncommon · Illustrated by Filip Burburan
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pioneer Legal
Timeless Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
Once Sifter Wurm's triggered ability begins to resolve, no player may take other actions until it's done. Notably, opponents can't try to change your library after you scry but before you reveal the top card of your library.