Enchantment — Room
Whenever one or more cards are put into your graveyard from your library, each opponent loses 1 life for each card type among those cards.
(You may cast either half. That door unlocks on the battlefield. As a sorcery, you may pay the mana cost of a locked door to unlock it.)