(Bad Cave isn't a spell.)
When Bad Cave enters the battlefield, you lose 1 life unless you reveal a multicolored card from your hand.
Sacrifice a land: You gain 1 life.
, Pay 1 life, Sacrifice Bad Cave: Search your library for a Swamp or Mountain card and put it onto the battlefield, then shuffle your library.