Tags for smithing recipes

This commit is contained in:
2026-11-13 20:19:37 -03:00
parent 51b5d148bd
commit d48fa8cca5
7 changed files with 130 additions and 47 deletions
+7 -5
View File
@@ -68,9 +68,11 @@ For the smithing table, which upgrades a tool. It's the base game's own type, re
}
```
An optional `addition` is a third item it also takes, as `{ "id", "count" }` like the material. Upgrading uses up the
tool and `count` of the material and the addition, and the result keeps the tool's `data`, like its
[durability](../items/tools.md#durability). Two smithing recipes with the same tool, material and addition are an error.
An optional `addition` is a third item it also takes, as `{ "id", "count" }` like the material. The tool and each `id`
are [choices](#choices), so `"material": { "id": "#bworld:cobblestones", "count": 5 }` takes 5 of any one cobblestone.
Upgrading uses up the tool and `count` of the material and the addition, and the result keeps the tool's `data`, like
its [durability](../items/tools.md#durability). Two smithing recipes that both fit the same tool, material and addition
are an error.
## Stonecutting: `bworld:stonecutting`
@@ -142,8 +144,8 @@ furnace smelts.
## Choices
Anywhere a recipe takes a choice of items (`shaped` keys, and the fields a type reads with
[`read.ingredient`](#custom-recipe-types), like smelting's `input` and fuel's `item`), an item [tag](tags.md) means
anything in it fits, and so does a list of ids and tags:
[`read.ingredient`](#custom-recipe-types), like smelting's `input`, fuel's `item` and smithing's `tool`), an item
[tag](tags.md) means anything in it fits, and so does a list of ids and tags:
```json
"key": { "P": "#bworld:planks" }