Sorcery
As an additional cost to cast this spell, sacrifice a creature.
Search your library for a creature card that shares a creature type with the sacrificed creature with mana value less than or equal to X plus the sacrificed creature's mana value, put it onto the battlefield, then shuffle.