# Anvil Combining Client Recipes

RRV provides a format for anvil combining recipes, allowing modpacks (or mods!) to show information about interactions in the world through resource packs. These JSON files should be added to a `assets/<namespace>/rrv/recipe` folder in your resource pack.

## Examples

The `left`, `right`, and `result` entries can be supplied with either an item tag, an item, or an item stack.

### Chest Boats (Item Tags)

Recipe file - `assets/rrv/rrv/recipe/chest_boats.json`
```json
{
  "type": "rrv:anvil_combining",
  "left": "#c:chests",
  "right": "#minecraft:boats",
  "result": "minecraft:oak_chest_boat"
}
```

### Cobblestone (Items)

Recipe file - `assets/rrv/rrv/recipe/cobblestone.json`
```json
{
  "type": "rrv:anvil_combining",
  "left": "minecraft:water",
  "right": "minecraft:lava",
  "result": "minecraft:cobblestone"
}
```

### Iron Pickaxes (Item Stacks)

Recipe file - `assets/rrv/rrv/recipe/iron_pickaxe.json`
```json
{
  "type": "rrv:anvil_combining",
  "left": "minecraft:stick",
  "right": "minecraft:iron_ingot",
  "result": {
    "id": "minecraft:iron_pickaxe",
    "components": {
      "minecraft:damage": 30
    }
  }
}
```

### Priority

Recipes can also set a priority. Higher priority recipes will show up before recipes with lower priority - negative numbers are allowed.

Recipe file - `assets/rrv/rrv/recipe/cobblestone.json`

```json
{
  "type": "rrv:anvil_combining",
  "left": "minecraft:stick",
  "right": "minecraft:iron_ingot",
  "result": {
    "id": "minecraft:iron_pickaxe",
    "components": {
      "minecraft:damage": 30
  },
  "priority": 10
}
```