# Duct retyping

Crafting recipe that sets the fluid of Universal Fluid Duct items.

File: `data/<namespace>/recipe/<path>.json`.

> **until NTM 1.0.3**
>
> `hbm:duct_retype` matches a crafting grid holding one Multi Fluid Identifier with a primary fluid and at least one `hbm:fluid_pipe`, `hbm:fluid_pipe_silver` or `hbm:fluid_pipe_colored`, and nothing else. It returns one `hbm:fluid_pipe` per duct, with `hbm:fluid_content` set to the identifier's primary fluid. The identifier remains in the grid.

> **since NTM 1.0.3**
>
> `hbm:duct_retype` matches one Multi Fluid Identifier with a primary fluid and one or more ducts of the same item type: `hbm:fluid_pipe`, `hbm:fluid_pipe_silver` or `hbm:fluid_pipe_colored`. It returns one duct of that same type per input duct, with `hbm:fluid_content` set to the identifier's primary fluid. The identifier remains in the grid. A grid mixing duct variants does not match.

> **since NTM 1.0.1**
>
> A duct may differ from its defaults only in `hbm:fluid_content`.

## Fields

| Field | Meaning and default |
| - | - |
| `type` | Selects the `hbm:duct_retype` recipe format. |
| Additional fields | None |

## Example:

Shipped recipe `data/hbm/recipe/duct_retype.json`:

```json
{"type": "hbm:duct_retype"}
```
