# Drawstep engine · Effects · `mill` > Mill — e.g. “mill a card”. 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/effects#mill ## Where it goes One step of an ability's `effects[]` (a spell's, a trigger's, an activated ability's, a mode's): `{ "effect": "mill", … }`. Steps resolve in order. Printed words that point here (search aliases): mill put the top cards into graveyard. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `who` | `"you" \| "controller" \| "abilityController" \| "sourceController" \| "owner" \| "eachOpponent" \| "eachPlayer" \| "target" \| "triggeringPlayer" \| "defendingPlayer" \| "attackingPlayer" \| "activePlayer" \| "re …` | no | Which player(s) — a player selector (default `you`) | | `target` | `TargetDef` | no | What it acts on (TargetDef) | | `amount` | `ValueDef` | yes | How many / how much (integer or ValueDef) | ## Minimal form ```json {"effect":"mill","amount":1} ``` The engine reads that minimal form as: “mill a card”. ## Stock examples - **Vastlands Scavenger** — “This creature enters prepared.” ```json {"effect":"mill","who":"you","amount":7} ``` - **Traumatize** — “Target player mills half their library, rounded down.” ```json {"effect":"mill","who":"target","target":{"of":"player","mode":"chosen"},"amount":{"kind":"math","op":"/","a":{"kind":"count","zone":"library","player":"target"},"b":2,"round":"down"}} ``` - **Curse of the Bloody Tome** — “At the beginning of enchanted player's upkeep, that player mills two cards.” ```json {"effect":"mill","who":"triggeringPlayer","amount":2} ``` ## Related - [Effects](https://drawstep.xyz/wiki/mtg/effects.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