summaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-07-26 13:49:13 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-07-26 13:49:13 +0300
commit0c91a0d59db70f3f502004d4c37fecd4e10c9401 (patch)
tree9698b31a1947ea389dcb96d6d6b4f56cf7d0903a /doc/lua_api.txt
parenta26a66a8c4f2121bb4693e63310ecc4c4d0c78ea (diff)
downloadminetest-0c91a0d59db70f3f502004d4c37fecd4e10c9401.tar.gz
minetest-0c91a0d59db70f3f502004d4c37fecd4e10c9401.tar.bz2
minetest-0c91a0d59db70f3f502004d4c37fecd4e10c9401.zip
Working group-shapeless and multigroup recipes
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt10
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 35b89021d..d47281b2d 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -423,7 +423,7 @@ effective towards.
Groups in crafting recipes
---------------------------
-An example:
+An example: Make meat soup from any meat, any water and any bowl
{
output = 'food:meat_soup_raw',
recipe = {
@@ -431,7 +431,13 @@ An example:
{'group:water'},
{'group:bowl'},
},
- preserve = {'group:bowl'}, -- Not implemented yet (TODO)
+ -- preserve = {'group:bowl'}, -- Not implemented yet (TODO)
+}
+An another example: Make red wool from white wool and red dye
+{
+ type = 'shapeless',
+ output = 'wool:red',
+ recipe = {'wool:white', 'group:dye,basecolor_red'},
}
Special groups