# Ammo Press

The `pattern` and `key` form a fixed 3×3 grid.

[Fixed grids](https://movblock.mov/ntm-next/26.3/wiki/recipes/fixed-grids.md) describes `pattern` and `key`. Each cell needs at least its key's `count` and consumes that many. The press produces the first `output_items` position.

## Fields

| Field | Meaning and default | Range |
| - | - | - |
| `type` | Selects the `hbm:ammo_press` recipe format. | |
| `name` (Optional) | Internal lookup name; defaults to the last segment of the recipe resource path. | |
| `output_items` | Fixed or weighted item-output positions; defaults to an empty list. | |
| `output_items.item ID` | Fixed output: String form for one item. | |
| `output_items.id` | Item ID in a stack object. | |
| `output_items.count` (Optional) | Stack size; default 1. | `[1, 99]` |
| `output_items.components` (Optional) | Item-component values. | |
| `output_items.chance` (Optional) | Output chance; omit for a guaranteed output. Some machines roll each item of the stack separately. | Rounds to weight `[1, 999]` of 1000 |
| `output_items.data` | Weighted choice: Stack object or an empty object for no output. | |
| `output_items.weight` | Relative selection weight; a positive total selects an output. | `[0, i32::MAX]` each; $\sum_i w_i \le \texttt{i32::MAX}$ |
| `order` (Optional) | Sort position within the recipe table; lower values first, default 2147483647. | `i32` |
| `key` | Maps each grid symbol to a counted ingredient. | |
| `key.ingredient` | Item ID, item tag, or loader ingredient object. | |
| `key.count` (Optional) | Items required from one stack; default 1. The item stack limit bounds a usable count. | `[1, i32::MAX]` |
| `key.components` (Optional) | Exact item-component values. | |
| `key.predicates` (Optional) | Item-component predicates. | |
| `pattern` | Three rows of three characters for the fixed-grid recipe. | |

## Example

Source path: `data/hbm/recipe/ammo_press/ammo_press.coil_tungsten.json`

```json
{
  "type": "hbm:ammo_press",
  "key": {
    "A": {
      "ingredient": "#c:ingots/tungsten"
    }
  },
  "order": 79,
  "output_items": [
    {
      "count": 4,
      "id": "hbm:ammo_standard_coil_tungsten"
    }
  ],
  "pattern": [
    "   ",
    " A ",
    "   "
  ]
}
```
