mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Improve crafting doc
This commit is contained in:
parent
974d915b19
commit
75f757ed2b
1 changed files with 14 additions and 0 deletions
|
@ -10466,6 +10466,16 @@ table format. The accepted parameters are listed below.
|
||||||
|
|
||||||
Recipe input items can either be specified by item name (item count = 1)
|
Recipe input items can either be specified by item name (item count = 1)
|
||||||
or by group (see "Groups in crafting recipes" for details).
|
or by group (see "Groups in crafting recipes" for details).
|
||||||
|
Only the item name (and groups) matter for matching a recipe, i.e. meta and count
|
||||||
|
are ignored.
|
||||||
|
|
||||||
|
If multiple recipes match the input of a craft grid, one of them is chosen by the
|
||||||
|
following priority rules:
|
||||||
|
|
||||||
|
* Shaped recipes are preferred over shapeless recipes, which in turn are preferred
|
||||||
|
over tool repair.
|
||||||
|
* Otherwise, recipes without groups are preferred over recipes with groups.
|
||||||
|
* Otherwise, earlier registered recipes are preferred.
|
||||||
|
|
||||||
The following sections describe the types and syntaxes of recipes.
|
The following sections describe the types and syntaxes of recipes.
|
||||||
|
|
||||||
|
@ -10485,6 +10495,10 @@ For example, for a 3x3 recipe, the `recipes` table must have
|
||||||
In order to craft the recipe, the players' crafting grid must
|
In order to craft the recipe, the players' crafting grid must
|
||||||
have equal or larger dimensions (both width and height).
|
have equal or larger dimensions (both width and height).
|
||||||
|
|
||||||
|
Empty slots outside of the recipe's extents are ignored, e.g. a 3x3
|
||||||
|
recipe where only the bottom right 2x2 slots are filled is the same
|
||||||
|
as the corresponding 2x2 recipe without the empty slots.
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
|
|
||||||
* `type = "shaped"`: (optional) specifies recipe type as shaped
|
* `type = "shaped"`: (optional) specifies recipe type as shaped
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue