# Drawstep engine · Replacements · `entersUnlessSacrifice` > Enters unless sacrifice — CR 614.12a: Scorched Ruins / Lotus Vale entry replacement. Engine: Magic: The Gathering (`mtg`). This is one primitive of the Drawstep card vocabulary; field names and the discriminator are exact. Wiki page: https://drawstep.xyz/wiki/mtg/replacements#entersUnlessSacrifice ## Where it goes A replacement ability: `{ "kind": "replacement", "replacement": { "replaces": "entersUnlessSacrifice", … } }`. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `sacrifice` | `TargetDef` | yes | Permanents its would-be controller must sacrifice before it enters; failure puts this card into its owner's graveyard | ## Minimal form ```json {"replaces":"entersUnlessSacrifice","sacrifice":{"of":"object","among":"triggering","random":true,"playerOwns":true,"playerFilter":"opponent","sharedBy":"creatureType","permanents":true}} ``` The engine reads that minimal form as: “if ~ would enter, sacrifice permanent chosen at random that share a creature type instead. If you do, put ~ onto the battlefield. If you don't, put it into its owner's graveyard”. ## Stock examples - **Scorched Ruins** — “If this land would enter, sacrifice two untapped lands instead. If you do, put this land onto the battlefield. If you don't, put it into its owner's graveyard.” ```json {"replaces":"entersUnlessSacrifice","sacrifice":{"of":"object","mode":"choose","filter":{"types":["Land"],"controller":"you","tapped":false},"min":2,"max":2}} ``` - **Soldevi Excavations** — “If this land would enter, sacrifice an untapped Island instead. If you do, put this land onto the battlefield. If you don't, put it into its owner's graveyard.” ```json {"replaces":"entersUnlessSacrifice","sacrifice":{"of":"object","mode":"choose","filter":{"types":["Land"],"subtypes":["Island"],"controller":"you","tapped":false},"min":1,"max":1}} ``` ## Related - [Replacements](https://drawstep.xyz/wiki/mtg/replacements.md) — the whole topic - [Filters & targets](https://drawstep.xyz/wiki/mtg/targets.md) — how `target` / `filter` select objects and players (selection algebra) - [Values](https://drawstep.xyz/wiki/mtg/values.md) — every number kind an `amount` accepts - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive