Add cooking pot from farmer's delight !

This commit is contained in:
2026-09-27 01:08:50 -03:00
parent 52587aabf7
commit e4c9a2f7f4
43 changed files with 913 additions and 10 deletions
+24 -2
View File
@@ -334,6 +334,7 @@ texture per face. `models/slab.json`:
| `elements[].faces` | `top`, `bottom`, `north`, `south`, `west` and `east`. Faces are only drawn from the front, so a flat plane needs one face each way. |
| `faces.*.texture` | A variable (`"#side"`, filled in by the block's `textures`) or a texture id. |
| `faces.*.uv` | `[u1, v1, u2, v2]`, the part of the texture in pixels. Defaults to the part the face covers. |
| `faces.*.rotation` | Turns the texture on the face clockwise by 0, 90, 180 or 270 degrees. |
| `faces.*.cullface` | Hidden when the neighbor on that side is a solid block. Only for faces on the block's edge. |
Faces flat against the block's edge get smooth lighting and ambient occlusion like a full block's. Anything inside the
@@ -478,8 +479,29 @@ A shaped recipe, for the crafting grid in the player's inventory screen:
```
Two furnace recipes with the same `input`, two smithing recipes with the same tool, material and addition, or two
shaped recipes with the same pattern and key, are a load error. Mods can add recipe types of their own for their
machines, see [Common scripts](#common-scripts).
shaped recipes with the same pattern and key, are a load error.
Mods can use recipe types of their own for their machines: any `type` with a namespace, like Farmer's Delight's
`farmersdelight:cooking` for its cooking pot. The engine only stores them, the mod's server script reads them with
`ctx.recipes.list("farmersdelight:cooking")` and checks the rest of the fields itself (throwing in `setup` makes a bad
recipe a load error). Other mods can add recipes of that type too. `recipes/cooking_cabbage_rolls.json`:
```json
{
"format_version": 1,
"recipe": {
"type": "farmersdelight:cooking",
"ingredients": ["farmersdelight:cabbage", ["bworld:carrot", "bworld:potato", "farmersdelight:onion"]],
"result": { "id": "farmersdelight:cabbage_rolls", "count": 1 },
"cook_time": 100
}
}
```
The cooking pot takes up to 6 `ingredients` in any slots, each an item id or a list of ids any of which will do. The
optional `container` (like `"bworld:bowl"`) is what the meal is served in, and `cook_time` is in ticks, 200 when not
set. It cooks while the block under it is hot: a lit stove (placed lit, relit with coal, put out with a shovel), or a
burning furnace, whose `lit` state is 1 while it has fuel.
## Overrides