diff options
author | Calinou <calinou@opmbx.org> | 2014-07-28 10:02:55 +0200 |
---|---|---|
committer | Calinou <calinou@opmbx.org> | 2014-07-28 10:02:55 +0200 |
commit | 3b1392ce04beea79b6e202598b71dbaf22895867 (patch) | |
tree | 9ca4651e105bd92b9f0ddc8bb34a28177cfa9277 /stairsplus/stairs.lua | |
parent | f7916005c2fe14a2aa7f9052abcffd250b67ffcc (diff) |
Make Stairs+ recipes mod-agnostic.
Diffstat (limited to 'stairsplus/stairs.lua')
-rw-r--r-- | stairsplus/stairs.lua | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/stairsplus/stairs.lua b/stairsplus/stairs.lua index ee1e8ec..b921d08 100644 --- a/stairsplus/stairs.lua +++ b/stairsplus/stairs.lua @@ -124,7 +124,7 @@ function stairsplus:register_stair(modname, subname, recipeitem, fields) -- Some saw-less recipes: minetest.register_craft({ - output = "moreblocks:stair_" .. subname .. " 8", + output = modname .. ":stair_" .. subname .. " 8", recipe = { {recipeitem, "", ""}, {recipeitem, recipeitem, ""}, @@ -133,7 +133,7 @@ function stairsplus:register_stair(modname, subname, recipeitem, fields) }) minetest.register_craft({ - output = "moreblocks:stair_" .. subname .. " 8", + output = modname .. ":stair_" .. subname .. " 8", recipe = { {"", "", recipeitem}, {"", recipeitem, recipeitem}, @@ -143,83 +143,83 @@ function stairsplus:register_stair(modname, subname, recipeitem, fields) minetest.register_craft({ type = "shapeless", - output = "moreblocks:stair_" .. subname, - recipe = {"moreblocks:panel_" .. subname, "moreblocks:slab_" .. subname}, + output = modname .. ":stair_" .. subname, + recipe = {modname .. ":panel_" .. subname, modname .. ":slab_" .. subname}, }) minetest.register_craft({ type = "shapeless", - output = "moreblocks:stair_" .. subname, - recipe = {"moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname}, + output = modname .. ":stair_" .. subname, + recipe = {modname .. ":panel_" .. subname, modname .. ":panel_" .. subname, modname .. ":panel_" .. subname}, }) minetest.register_craft({ type = "shapeless", - output = "moreblocks:stair_" .. subname .. "_outer", - recipe = {"moreblocks:micro_" .. subname, "moreblocks:slab_" .. subname}, + output = modname .. ":stair_" .. subname .. "_outer", + recipe = {modname .. ":micro_" .. subname, modname .. ":slab_" .. subname}, }) minetest.register_craft({ type = "shapeless", - output = "moreblocks:stair_" .. subname .. "_half", - recipe = {"moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname}, + output = modname .. ":stair_" .. subname .. "_half", + recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname}, }) minetest.register_craft({ type = "shapeless", - output = "moreblocks:stair_" .. subname .. "_half", - recipe = {"moreblocks:panel_" .. subname, "moreblocks:micro_" .. subname}, + output = modname .. ":stair_" .. subname .. "_half", + recipe = {modname .. ":panel_" .. subname, modname .. ":micro_" .. subname}, }) minetest.register_craft({ type = "shapeless", - output = "moreblocks:stair_" .. subname .. "_right_half", - recipe = {"moreblocks:stair_" .. subname .. "_half"}, + output = modname .. ":stair_" .. subname .. "_right_half", + recipe = {modname .. ":stair_" .. subname .. "_half"}, }) minetest.register_craft({ type = "shapeless", - output = "moreblocks:stair_" .. subname .. "_half", - recipe = {"moreblocks:stair_" .. subname .. "_right_half"}, + output = modname .. ":stair_" .. subname .. "_half", + recipe = {modname .. ":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}, + output = modname .. ":stair_" .. subname, + recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":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}, + output = modname .. ":stair_" .. subname .. "_inner", + recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":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}, + output = modname .. ":stair_" .. subname .. "_outer", + recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname}, }) minetest.register_craft({ type = "shapeless", - output = "moreblocks:stair_" .. subname, - recipe = {"moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname}, + output = modname .. ":stair_" .. subname, + recipe = {modname .. ":panel_" .. subname, modname .. ":panel_" .. subname, modname .. ":panel_" .. subname}, }) minetest.register_craft({ -- See mirrored variation of the recipe below. - output = "moreblocks:stair_" .. subname .. "_alt", + output = modname .. ":stair_" .. subname .. "_alt", recipe = { - {"moreblocks:panel_" .. subname, ""}, - {"" , "moreblocks:panel_" .. subname}, + {modname .. ":panel_" .. subname, ""}, + {"" , modname .. ":panel_" .. subname}, }, }) minetest.register_craft({ -- Mirrored variation of the recipe above. - output = "moreblocks:stair_" .. subname .. "_alt", + output = modname .. ":stair_" .. subname .. "_alt", recipe = { - {"" , "moreblocks:panel_" .. subname}, - {"moreblocks:panel_" .. subname, ""}, + {"" , modname .. ":panel_" .. subname}, + {modname .. ":panel_" .. subname, ""}, }, }) end |