diff options
author | Calinou <calinou@opmbx.org> | 2014-07-21 12:24:49 +0200 |
---|---|---|
committer | Calinou <calinou@opmbx.org> | 2014-07-21 12:24:49 +0200 |
commit | f7916005c2fe14a2aa7f9052abcffd250b67ffcc (patch) | |
tree | 4488ce6705bd0a7c87e3afb731b374a8dfa06968 /stairsplus/microblocks.lua | |
parent | 28741bf242f64fe52fc686fe3683d5015a90f3e2 (diff) |
Code cleanup, new Stairs+ recipes.
Diffstat (limited to 'stairsplus/microblocks.lua')
-rw-r--r-- | stairsplus/microblocks.lua | 31 |
1 files changed, 23 insertions, 8 deletions
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({ |