# Drawstep engine · Replacements · `asEnters` > As enters — CR 614.1c, 614.12: "As this enters, ": performed as part of the entry, before the permanent is on the battlefield; its own entersWithCounters read the results (doneThisWay, ifYouDo). 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#asEnters ## Where it goes A replacement ability: `{ "kind": "replacement", "replacement": { "replaces": "asEnters", … } }`. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `effects` | `EffectDef[]` | yes | The effects, resolved in order (EffectDef[]) | | `condition` | `ConditionDef` | no | A ConditionDef that must hold | ## Minimal form ```json {"replaces":"asEnters","effects":[]} ``` The engine reads that minimal form as: “as ~ enters, ”. ## Stock examples - **Ixidron** — “As this creature enters, turn all other nontoken creatures face down.” ```json {"replaces":"asEnters","effects":[{"effect":"turnFaceDown","target":{"of":"object","mode":"all","filter":{"types":["Creature"],"isToken":false,"other":true}}}]} ``` - **Sin, Unending Cataclysm** — “As Sin enters, remove all counters from any number of artifacts, creatures, and enchantments. Sin enters with X +1/+1 counters on it, where X is twice the number of counters removed this way.” ```json {"replaces":"asEnters","effects":[{"effect":"removeCounters","target":{"of":"object","mode":"choose","filter":{"anyTypes":["Artifact","Creature","Enchantment"]},"min":0,"max":"any"},"counter":"any","amount":"all"}]} ``` ## Related - [Replacements](https://drawstep.xyz/wiki/mtg/replacements.md) — the whole topic - [Effects](https://drawstep.xyz/wiki/mtg/effects.md) — the steps a nested `effects` / `then` list may contain - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive