# Item-tag result

The result uses the first current member of its item tag.

`hbm:tag_result` is a shapeless crafting recipe whose result is the first item currently in an item tag. An empty tag matches nothing.

## Fields

| Field | Meaning and default | Range |
| - | - | - |
| `type` | Selects the `hbm:tag_result` recipe format. | |
| `ingredients` | 1–9 ingredients; each entry consumes one item from its assigned slot. | |
| `result` | Selects an item from a tag. | |
| `result.tag` | Item tag used to select the result. | |
| `result.count` (Optional) | Result count; default 1. | `[1, i32::MAX]` |
| `category` (Optional) | Recipe-book category: `building`, `redstone`, `equipment`, or `misc`; default `misc`. | |
| `group` (Optional) | Recipe-book group string; default empty. | |
| `show_notification` (Optional) | Shows the recipe-unlock notification; default `true`. | |

Each slot is tested against its full ingredient, including custom-ingredient component requirements. Changed inputs follow [changed component state](https://movblock.mov/ntm-next/26.3/wiki/ingredients-and-components.md#changed-component-state).

The loader condition on this example is described under [Recipe conditions](https://movblock.mov/ntm-next/26.3/wiki/recipes/conditions.md).

## Example

Source path: `data/hbm/recipe/ingot_nickel_from_depleted_pellet.json`

*NTM 1.0.4 · Fabric:*

```json
{
  "fabric:load_conditions": [
    {
      "type": "fabric:tags_populated",
      "registry": "minecraft:item",
      "values": [
        "c:ingots/nickel"
      ]
    }
  ],
  "type": "hbm:tag_result",
  "ingredients": [
    {
      "fabric:type": "hbm:recipe_input",
      "base": "hbm:pellet_rtg_depleted_nickel",
      "remainder": true
    }
  ],
  "result": {
    "count": 2,
    "tag": "c:ingots/nickel"
  }
}
```

*NTM 1.0.4 · NeoForge:*

```json
{
  "neoforge:conditions": [
    {
      "type": "neoforge:not",
      "value": {
        "type": "neoforge:tag_empty",
        "tag": "c:ingots/nickel"
      }
    }
  ],
  "type": "hbm:tag_result",
  "ingredients": [
    {
      "neoforge:ingredient_type": "hbm:recipe_input",
      "base": "hbm:pellet_rtg_depleted_nickel",
      "remainder": true
    }
  ],
  "result": {
    "count": 2,
    "tag": "c:ingots/nickel"
  }
}
```
