If you don't have at least two cards in your library, you can't choose to mill two cards.

Artwork
Loading artwork…
Mineshaft Spider
The Lost Caverns of Ixalan · #202 · EN
Nonfoil—Foil—
Card rules
Reach
When this creature enters, you may mill two cards. (You may put the top two cards of your library into your graveyard.)
3/4
Anything that falls into the pit—relics, rubble, even corpses—ends up snared in its magic-infused web.
Common · Illustrated by Sam Rowan
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Penny Legal
Pioneer Legal
Standard Legal
Standard Brawl Legal
Timeless Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
PreDH Not Legal
Premodern Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions