Juicer recipes register
This commit is contained in:
@@ -42,8 +42,9 @@ All juice is one [fluid](../resources/fluids.md), `bworld:juice`, and the item i
|
||||
`{ "id": "bworld:juice", "data": { "item": "bworld:strawberry" } }`. The base game's rules name it after that item,
|
||||
"Strawberry Juice", in the color its component says, so juice from another mod's item needs nothing but the component.
|
||||
Juices from different items are different fluids, so they never share a bottle or a tank. Glass bottles
|
||||
(`bworld:glass_bottle`, 250 mB) and buckets (`bworld:bucket`, 1000 mB) hold it, and whatever makes juice reads the
|
||||
component.
|
||||
(`bworld:glass_bottle`, 250 mB) and buckets (`bworld:bucket`, 1000 mB) hold it. The base game makes a
|
||||
[juicing recipe](../resources/recipes.md#juicing-bworldjuicing) for every item with the component, which is what the
|
||||
juicer goes by.
|
||||
|
||||
Juice sells for 1.2 times the items it took to make, rounded up, so it's always worth juicing something. A bottle of
|
||||
juice from an item worth 30 that makes 200 mB took 1.25 of them, and sells for 45. Juice from an item without a
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user