diff options
author | Calinou <calinou@opmbx.org> | 2014-07-03 19:31:43 +0200 |
---|---|---|
committer | Calinou <calinou@opmbx.org> | 2014-07-03 19:31:43 +0200 |
commit | abfd2adcfdad16d2886880e8652784370cd6ca24 (patch) | |
tree | da081c159b438ffa1d8c9c87045f78899231398a /stairsplus/microblocks.lua | |
parent | fb227f2a011030deb3c8015b30ac4c7f14acdaaf (diff) |
New recipes, code cleanup.
Diffstat (limited to 'stairsplus/microblocks.lua')
-rw-r--r-- | stairsplus/microblocks.lua | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/stairsplus/microblocks.lua b/stairsplus/microblocks.lua index 24eaffb..6774848 100644 --- a/stairsplus/microblocks.lua +++ b/stairsplus/microblocks.lua @@ -82,29 +82,26 @@ function stairsplus:register_micro(modname, subname, recipeitem, fields) minetest.register_alias(modname..":micro_"..subname.."_bottom", modname..":micro_"..subname) - -- Some saw-less recipe. + -- Some saw-less recipes: - minetest.register_craft({ - output = "moreblocks:micro_" .. subname .. " 6", - recipe = { - {"moreblocks:stair_" .. subname}, - }, + minetest.register_craft({ + output = "moreblocks:micro_" .. subname .. " 6", + recipe = {{"moreblocks:stair_" .. subname}}, }) - minetest.register_craft({ - output = "moreblocks:micro_" .. subname .. " 4", - recipe = { - {"moreblocks:slab_" .. subname}, - }, + + minetest.register_craft({ + output = "moreblocks:micro_" .. subname .. " 4", + recipe = {{"moreblocks:slab_" .. subname}}, }) - minetest.register_craft({ - output = "moreblocks:micro_" .. subname .. " 2", - recipe = { - {"moreblocks:panel_" .. subname}, - }, + + minetest.register_craft({ + output = "moreblocks:micro_" .. subname .. " 2", + recipe = {{"moreblocks:panel_" .. subname}}, }) - minetest.register_craft({ - type = "shapeless", - output = recipeitem, - recipe = {"moreblocks:micro_" .. subname, "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 = recipeitem, + recipe = {"moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname}, }) end |