Fermenting recipes

This commit is contained in:
2026-10-31 17:50:53 -03:00
parent 658a6453b7
commit b08de6bf81
8 changed files with 159 additions and 20 deletions
+21
View File
@@ -108,6 +108,27 @@ juice. It's checked when the server starts, like stonecutting:
`input` is an item, a `#tag` or a list of them, and `fluid_results` is one fluid, with an amount in mB, that one of it
makes. The juicer uses the first recipe that takes the item.
## Fermenting: `bworld:fermentable`
A fluid that ferments into another over time, like juice into wine. The base game registers one from its
[shared script](#recipes-from-scripts) for every [juice](../items/food.md#juice), into wine from the same item. A file
can add one for anything else. It's checked when the server starts, like juicing:
```json
{
"format_version": 1,
"recipe": {
"type": "bworld:fermentable",
"input": { "fluid": { "id": "copper_tools:syrup", "data": { "tree": "bworld:maple" } }, "amount": 1000 },
"output": { "fluid": { "id": "copper_tools:maple_liqueur" }, "amount": 500 },
"ticks": 2400
}
}
```
`input` and `output` are each a fluid with an amount in mB: that much of the input ferments into that much of the
output. `ticks` is how long it takes, 20 to a second.
## Choices
Anywhere a recipe takes an item (`key` values, `input`, `item`), an item [tag](tags.md) means anything in it fits, and