diff options
author | Calinou <calinou@opmbx.org> | 2014-05-04 17:53:15 +0200 |
---|---|---|
committer | Calinou <calinou@opmbx.org> | 2014-05-04 17:53:15 +0200 |
commit | d335d0dd3c060c26264320e5891052b6ff741a26 (patch) | |
tree | f8921ac96060bbcb2874e4e629480309f90b945e /stairsplus/panels.lua | |
parent | 4cd994e38596509864f97d4c4eba892486fde820 (diff) |
New recipes for Stairs+ nodes. Allows crafting most useful Stairs+ nodes. More accurate nodes still require the usage of the circular saw.
Diffstat (limited to 'stairsplus/panels.lua')
-rw-r--r-- | stairsplus/panels.lua | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/stairsplus/panels.lua b/stairsplus/panels.lua index efabd46..7e4fd8d 100644 --- a/stairsplus/panels.lua +++ b/stairsplus/panels.lua @@ -82,7 +82,33 @@ function stairsplus:register_panel(modname, subname, recipeitem, fields) end minetest.register_node(":"..modname..":panel_"..subname..alternate, def) end - minetest.register_alias(modname..":panel_"..subname.."_bottom", modname..":panel_"..subname) + + -- Some saw-less recipe. + + minetest.register_craft({ + output = "moreblocks:panel_" .. subname .. " 12", + recipe = { + {recipeitem, ""}, + {recipeitem, recipeitem}, + }, + }) + minetest.register_craft({ + output = "moreblocks:panel_" .. subname .. " 12", + recipe = { + {"", recipeitem}, + {recipeitem, recipeitem}, + }, + }) + minetest.register_craft({ + type = "shapeless", + output = "moreblocks:panel_" .. subname, + recipe = {"moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname}, + }) + minetest.register_craft({ + type = "shapeless", + output = recipeitem, + recipe = {"moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname}, + }) end |