(Cave Flagstones isn't a spell.)
At the beginning of your upkeep, Cave Flagstones deals 1 damage to target creature you control.
Sacrifice a land: You gain 1 life.
, Pay 1 life, Sacrifice Cave Flagstones: Search your library for a Mountain or Plains card and put it onto the battlefield, then shuffle your library.