summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-06-06 23:39:17 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-06-06 23:39:17 +0300
commita435cfcd82ccb138cbb05facdf3408335c638720 (patch)
treed376fd8316f45fc93bbeb86f4cd4a2f38efa2815 /doc
parent7631918a12068124fafbe7d78bb60b563a1824dd (diff)
downloadminetest-a435cfcd82ccb138cbb05facdf3408335c638720.tar.gz
minetest-a435cfcd82ccb138cbb05facdf3408335c638720.tar.bz2
minetest-a435cfcd82ccb138cbb05facdf3408335c638720.zip
Allow groups in crafting recipes
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt17
1 files changed, 8 insertions, 9 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 5ec8ef79b..16587144d 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -363,8 +363,7 @@ effective towards.
Groups in crafting recipes
---------------------------
-- Not implemented yet. (TODO)
-- Will probably look like this:
+An example:
{
output = 'food:meat_soup_raw',
recipe = {
@@ -372,7 +371,7 @@ Groups in crafting recipes
{'group:water'},
{'group:bowl'},
},
- preserve = {'group:bowl'},
+ preserve = {'group:bowl'}, -- Not implemented yet (TODO)
}
Special groups
@@ -1210,19 +1209,19 @@ Node definition (register_node)
^ default: minetest.node_metadata_inventory_take_allow_all
}
-Recipe: (register_craft)
+Recipe for register_craft: (shaped)
{
output = 'default:pick_stone',
recipe = {
{'default:cobble', 'default:cobble', 'default:cobble'},
{'', 'default:stick', ''},
- {'', 'default:stick', ''},
+ {'', 'default:stick', ''}, -- Also groups; eg. 'group:crumbly'
},
replacements = <optional list of item pairs,
replace one input item with another item on crafting>
}
-Recipe (shapeless):
+Recipe for register_craft (shapeless)
{
type = "shapeless",
output = 'mushrooms:mushroom_stew',
@@ -1235,13 +1234,13 @@ Recipe (shapeless):
replace one input item with another item on crafting>
}
-Recipe (tool repair):
+Recipe for register_craft (tool repair)
{
type = "toolrepair",
additional_wear = -0.02,
}
-Recipe (cooking):
+Recipe for register_craft (cooking)
{
type = "cooking",
output = "default:glass",
@@ -1249,7 +1248,7 @@ Recipe (cooking):
cooktime = 3,
}
-Recipe (furnace fuel):
+Recipe for register_craft (furnace fuel)
{
type = "fuel",
recipe = "default:leaves",