From f7916005c2fe14a2aa7f9052abcffd250b67ffcc Mon Sep 17 00:00:00 2001 From: Calinou Date: Mon, 21 Jul 2014 12:24:49 +0200 Subject: Code cleanup, new Stairs+ recipes. --- stairsplus/microblocks.lua | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) (limited to 'stairsplus/microblocks.lua') diff --git a/stairsplus/microblocks.lua b/stairsplus/microblocks.lua index 6774848..9ef7533 100644 --- a/stairsplus/microblocks.lua +++ b/stairsplus/microblocks.lua @@ -75,28 +75,43 @@ function stairsplus:register_micro(modname, subname, recipeitem, fields) end def.description = desc if fields.drop then - def.drop = modname..":micro_"..fields.drop..alternate + def.drop = modname.. ":micro_" ..fields.drop..alternate end - minetest.register_node(":"..modname..":micro_"..subname..alternate, def) + minetest.register_node(":" ..modname.. ":micro_" ..subname..alternate, def) end - minetest.register_alias(modname..":micro_"..subname.."_bottom", modname..":micro_"..subname) + minetest.register_alias(modname.. ":micro_" ..subname.. "_bottom", modname.. ":micro_" ..subname) -- Some saw-less recipes: + minetest.register_craft({ + type = "shapeless", + output = "moreblocks:micro_" .. subname .. " 7", + recipe = {"moreblocks:stair_" .. subname .. "_inner"}, + }) + minetest.register_craft({ output = "moreblocks:micro_" .. subname .. " 6", - recipe = {{"moreblocks:stair_" .. subname}}, + type = "shapeless", + recipe = {"moreblocks:stair_" .. subname}, }) minetest.register_craft({ - output = "moreblocks:micro_" .. subname .. " 4", - recipe = {{"moreblocks:slab_" .. subname}}, + type = "shapeless", + output = "moreblocks:micro_" .. subname .. " 5", + recipe = {"moreblocks:stair_" .. subname .. "_outer"}, }) minetest.register_craft({ - output = "moreblocks:micro_" .. subname .. " 2", - recipe = {{"moreblocks:panel_" .. subname}}, + type = "shapeless", + output = "moreblocks:micro_" .. subname .. " 4", + recipe = {"moreblocks:slab_" .. subname}, + }) + + minetest.register_craft({ + type = "shapeless", + output = "moreblocks:micro_" .. subname .. " 2", + recipe = {"moreblocks:panel_" .. subname}, }) minetest.register_craft({ -- cgit v1.2.3