Juicer recipes register

This commit is contained in:
2026-10-30 22:35:44 -03:00
parent 43521b3675
commit 4717e45a9a
9 changed files with 171 additions and 42 deletions
+23
View File
@@ -85,6 +85,29 @@ recipes when the server starts rather than the engine:
Every recipe that takes the item in the stonecutter's input is listed, in load order, and the player picks one. Each cut
uses up one of the input.
## Juicing: `bworld:juicing`
For the juicer, which presses an item into a fluid. The base game registers one from its
[shared script](#recipes-from-scripts) for every item with [`bworld:juiceable`](../items/food.md#juice), making the
juice named after it, so most mods never write one. A file can add one for anything else, or make something other than
juice. It's checked when the server starts, like stonecutting:
```json
{
"format_version": 1,
"recipe": {
"type": "bworld:juicing",
"input": "copper_tools:maple_sap_bucket",
"fluid_results": [
{ "fluid": { "id": "copper_tools:syrup", "data": { "tree": "bworld:maple" } }, "amount": 250 }
]
}
}
```
`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.
## Choices
Anywhere a recipe takes an item (`key` values, `input`, `item`), an item [tag](tags.md) means anything in it fits, and