Move farmers delight to bworld
This commit is contained in:
@@ -155,16 +155,16 @@ Use a tag rather than listing ids when other mods might have more of the same th
|
||||
|
||||
## Custom Recipe Types
|
||||
|
||||
Any `type` with a namespace is a mod's own, like `farmersdelight:cooking` for the cooking pot. The engine only stores
|
||||
these recipes. Everything else about them is up to the mod:
|
||||
Any `type` with a namespace is a mod's own, like `bworld:cooking` for the cooking pot. The engine only stores these
|
||||
recipes. Everything else about them is up to the mod:
|
||||
|
||||
```json
|
||||
{
|
||||
"format_version": 1,
|
||||
"recipe": {
|
||||
"type": "farmersdelight:cooking",
|
||||
"ingredients": ["farmersdelight:cabbage", ["bworld:carrot", "bworld:potato", "farmersdelight:onion"]],
|
||||
"result": { "id": "farmersdelight:cabbage_rolls", "count": 1 },
|
||||
"type": "bworld:cooking",
|
||||
"ingredients": ["bworld:cabbage", ["bworld:carrot", "bworld:potato", "bworld:onion"]],
|
||||
"result": { "id": "bworld:cabbage_rolls", "count": 1 },
|
||||
"cook_time": 100
|
||||
}
|
||||
}
|
||||
@@ -173,7 +173,7 @@ these recipes. Everything else about them is up to the mod:
|
||||
The mod's server script reads them in `setup` and checks their fields itself:
|
||||
|
||||
```ts
|
||||
const recipes = ctx.recipes.list("farmersdelight:cooking").map((json, i) => {
|
||||
const recipes = ctx.recipes.list("bworld:cooking").map((json, i) => {
|
||||
if (!Array.isArray(json.ingredients) || json.ingredients.length > 6) {
|
||||
throw new Error(`cooking recipe ${i + 1}: ingredients must be 1 to 6 items`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user