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/stairs.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/stairs.lua')
-rw-r--r-- | stairsplus/stairs.lua | 60 |
1 files changed, 53 insertions, 7 deletions
diff --git a/stairsplus/stairs.lua b/stairsplus/stairs.lua index 12b7847..1830686 100644 --- a/stairsplus/stairs.lua +++ b/stairsplus/stairs.lua @@ -123,12 +123,10 @@ function stairsplus:register_stair(modname, subname, recipeitem, fields) end minetest.register_alias(":stairs:stair_"..subname, modname..":stair_"..subname) - - -- Unregister default recipes, optional, see config.lua - - if not moreblocks.config.allow_stair_slab_crafting then + -- Some saw-less recipes. + minetest.register_craft({ - output = "moreblocks:nothing 1", + output = "moreblocks:stair_" .. subname .. " 8", recipe = { {recipeitem, "", ""}, {recipeitem, recipeitem, ""}, @@ -137,13 +135,61 @@ function stairsplus:register_stair(modname, subname, recipeitem, fields) }) minetest.register_craft({ - output = "moreblocks:nothing 1", + output = "moreblocks:stair_" .. subname .. " 8", recipe = { {"", "", recipeitem}, {"", recipeitem, recipeitem}, {recipeitem, recipeitem, recipeitem}, }, }) - end + minetest.register_craft({ + output = "moreblocks:stair_" .. subname, + recipe = { + {"moreblocks:panel_" .. subname}, + {"moreblocks:slab_" .. subname}, + }, + }) + minetest.register_craft({ + output = "moreblocks:stair_" .. subname .. "_outer", + recipe = { + {"moreblocks:micro_" .. subname}, + {"moreblocks:slab_" .. subname}, + }, + }) + minetest.register_craft({ + type = "shapeless", + output = "moreblocks:stair_" .. subname .. "_half", + recipe = {"moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname}, + }) + minetest.register_craft({ + type = "shapeless", + output = "moreblocks:stair_" .. subname .. "_right_half", + recipe = {"moreblocks:stair_" .. subname .. "_half"}, + }) + minetest.register_craft({ + type = "shapeless", + output = "moreblocks:stair_" .. subname .. "_half", + recipe = {"moreblocks:stair_" .. subname .. "_right_half"}, + }) + minetest.register_craft({ + type = "shapeless", + output = "moreblocks:stair_" .. subname, + recipe = {"moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname}, + }) + minetest.register_craft({ + type = "shapeless", + output = "moreblocks:stair_" .. subname .. "_inner", + recipe = {"moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname}, + }) + minetest.register_craft({ + type = "shapeless", + output = "moreblocks:stair_" .. subname .. "_outer", + recipe = {"moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname}, + }) + minetest.register_craft({ + type = "shapeless", + output = "moreblocks:stair_" .. subname, + recipe = {"moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname}, + }) end |