diff options
Diffstat (limited to 'stairsplus/stairs.lua')
-rw-r--r-- | stairsplus/stairs.lua | 149 |
1 files changed, 83 insertions, 66 deletions
diff --git a/stairsplus/stairs.lua b/stairsplus/stairs.lua index d5283c3..e93fdee 100644 --- a/stairsplus/stairs.lua +++ b/stairsplus/stairs.lua @@ -121,72 +121,89 @@ function stairsplus:register_stair(modname, subname, recipeitem, fields) end minetest.register_alias(":stairs:stair_"..subname, modname..":stair_"..subname) - -- Some saw-less recipes. + -- Some saw-less recipes: - minetest.register_craft({ - output = "moreblocks:stair_" .. subname .. " 8", - recipe = { - {recipeitem, "", ""}, - {recipeitem, recipeitem, ""}, - {recipeitem, recipeitem, recipeitem}, - }, - }) + minetest.register_craft({ + output = "moreblocks:stair_" .. subname .. " 8", + recipe = { + {recipeitem, "", ""}, + {recipeitem, recipeitem, ""}, + {recipeitem, recipeitem, recipeitem}, + }, + }) - minetest.register_craft({ - output = "moreblocks:stair_" .. subname .. " 8", - recipe = { - {"", "", recipeitem}, - {"", recipeitem, recipeitem}, - {recipeitem, recipeitem, recipeitem}, - }, - }) - 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}, - }) + minetest.register_craft({ + output = "moreblocks:stair_" .. subname .. " 8", + recipe = { + {"", "", recipeitem}, + {"", recipeitem, recipeitem}, + {recipeitem, recipeitem, recipeitem}, + }, + }) + + minetest.register_craft({ + type = "shapeless", + output = "moreblocks:stair_" .. subname, + recipe = {"moreblocks:panel_" .. subname, "moreblocks:slab_" .. subname}, + }) + + minetest.register_craft({ + type = "shapeless", + output = "moreblocks:stair_" .. subname, + recipe = {"moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname}, + }) + + minetest.register_craft({ + type = "shapeless", + 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 .. "_half", + recipe = {"moreblocks:panel_" .. 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 |