# Drawstep engine · Effects · `addCounters` > Add counters — e.g. “put a +1/+1 counter on target creature”. 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#addCounters ## Where it goes One step of an ability's `effects[]` (a spell's, a trigger's, an activated ability's, a mode's): `{ "effect": "addCounters", … }`. Steps resolve in order. Printed words that point here (search aliases): put a +1/+1 counter counters on adaptation. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `sacrificeRest` | `ObjectFilter` | no | CR 101.4, 701.21a, 608.2c: after counter placement, simultaneously sacrifice matching permanents those players control other than the chosen recipients; retain the recipients as affected | | `who` | `"you" \| "controller" \| "abilityController" \| "sourceController" \| "owner" \| "eachOpponent" \| "eachPlayer" \| "target" \| "triggeringPlayer" \| "defendingPlayer" \| "attackingPlayer" \| "activePlayer" \| "re …` | no | CR 101.4, 122.1: players placing counters; each chooses before counters are placed simultaneously; current is that player | | `optional` | `boolean` | no | Each placing player may decline (CR 608.2d) | | `then` | `EffectDef[]` | no | After placement, run for each player who chose to act, with current bound to them (CR 118.12) | | `target` | `TargetDef` | yes | What it acts on (TargetDef) | | `counters` | `({ counter: string; if: ObjectFilter })[]` | no | CR 122.1, 608.2c, 603.2c: put amount of each matching counter kind simultaneously; test all recipient filters before placing any counters | | `chosenCounter` | `string` | no | CR 122.1, 608.2d: key of a counter kind chosen earlier in this resolution; an impossible choice adds nothing. Supports permanent and player counters | | `onlyIfAbsent` | `boolean` | no | CR 608.2c: add counters only if the recipient has none of the chosen kind | | `counter` | `string \| string[]` | no | CR 122.1, 608.2d: a kind, or a list for "your choice of a +1/+1, first strike, or trample counter" chosen on resolution for each recipient | | `amounts` | `ValueDef[]` | no | CR 122.1, 608.2d: with a counter list, the count for each alternative in order ("your choice of a +1/+1 counter or two charge counters"); the chosen alternative places its own count instead of amount | | `amount` | `ValueDef` | yes | How many / how much (integer or ValueDef) | | `upTo` | `boolean` | no | CR 107.1b, 608.2d: choose zero through amount on resolution for each recipient | | `divided` | `boolean` | no | "Distribute N +1/+1 counters among one, two, or three target creatures": the distribution is announced as the spell is cast (each target at least one, CR 601.2d) | | `maxTotal` | `ValueDef` | no | "This ability can't cause the total number of +1/+0 counters on this creature to be greater than four": put only as many as keep each recipient's count of this counter at or below this total (CR 122.1) | ## Minimal form ```json {"effect":"addCounters","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"]}},"amount":1} ``` The engine reads that minimal form as: “put a +1/+1 counter on target creature”. ## Stock examples - **Iteration 71 crime** — “” ```json {"effect":"addCounters","target":{"of":"object","mode":"self"},"counter":"test","amount":1} ``` - **Iteration 71 X value** — “” ```json {"effect":"addCounters","target":{"of":"object","mode":"self"},"counter":"test","amount":{"kind":"var","name":"X"}} ``` - **Iteration 71 x** — “” ```json {"effect":"addCounters","target":{"of":"object","mode":"self"},"counter":"test","amount":1} ``` ## 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 - [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