# Drawstep engine · Abilities · `replacement` > Replacement — e.g. “As long as this card is in your graveyard, ~ enters tapped.”. 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/abilities#replacement ## Where it goes One entry of `abilities[]`: `{ "kind": "replacement", … }`. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `name` | `string` | no | Printed name. On an ability: its ability word ("Hellfire Retribution"), shown in the English rendering, on the stack and in the log | | `replacement` | `ReplacementDef` | yes | The replacement effect (a ReplacementDef) | | `functionsFrom` | `"graveyard"` | no | CR 113.6: the replacement ability states it functions only while its card is in this zone ("As long as this creature is in your graveyard, …", Dearly Departed); it applies from there and never from the battlefield | ## Minimal form ```json {"kind":"replacement","replacement":{"replaces":"entersTapped"},"functionsFrom":"graveyard"} ``` The engine reads that minimal form as: “As long as this card is in your graveyard, ~ enters tapped.”. ## Stock examples - **Iter99 Draw Doubler** — “” ```json {"kind":"replacement","replacement":{"replaces":"event","event":"draw","toPlayer":"you","multiply":2}} ``` - **Guile** — “” ```json {"kind":"replacement","replacement":{"replaces":"event","event":"counter","to":{"of":"spell","mode":"all"},"by":"you","zone":"exile","then":[{"effect":"castFree","target":{"of":"object","mode":"replaced"},"optional":true,"play":true}]}} ``` - **Goblin Bowling Team** — “” ```json {"kind":"replacement","replacement":{"replaces":"event","event":"damage","to":{"of":"object","mode":"all"},"toPlayer":"eachPlayer","from":{"of":"object","mode":"self"},"addDieRoll":6}} ``` ## Related - [Abilities](https://drawstep.xyz/wiki/mtg/abilities.md) — the whole topic - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive