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/slabs.lua | |
parent | f7916005c2fe14a2aa7f9052abcffd250b67ffcc (diff) |
Make Stairs+ recipes mod-agnostic.
Diffstat (limited to 'stairsplus/slabs.lua')
-rw-r--r-- | stairsplus/slabs.lua | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/stairsplus/slabs.lua b/stairsplus/slabs.lua index ae15c40..bbae96b 100644 --- a/stairsplus/slabs.lua +++ b/stairsplus/slabs.lua @@ -83,38 +83,38 @@ function stairsplus:register_slab(modname, subname, recipeitem, fields) -- Some saw-less recipes: minetest.register_craft({ - output = "moreblocks:slab_" .. subname .. " 6", + output = modname .. ":slab_" .. subname .. " 6", recipe = {{recipeitem, recipeitem, recipeitem}}, }) minetest.register_craft({ type = "shapeless", - output = "moreblocks:slab_" .. subname, - recipe = {"moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname}, + output = modname .. ":slab_" .. subname, + recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname}, }) minetest.register_craft({ - output = "moreblocks:slab_" .. subname, - recipe = {{"moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname}}, + output = modname .. ":slab_" .. subname, + recipe = {{modname .. ":panel_" .. subname, modname .. ":panel_" .. subname}}, }) minetest.register_craft({ - output = "moreblocks:slab_" .. subname, + output = modname .. ":slab_" .. subname, recipe = { - {"moreblocks:panel_" .. subname}, - {"moreblocks:panel_" .. subname}, + {modname .. ":panel_" .. subname}, + {modname .. ":panel_" .. subname}, }, }) minetest.register_craft({ type = "shapeless", output = recipeitem, - recipe = {"moreblocks:slab_" .. subname, "moreblocks:slab_" .. subname}, + recipe = {modname .. ":slab_" .. subname, modname .. ":slab_" .. subname}, }) minetest.register_craft({ type = "shapeless", - output = "moreblocks:slab_" .. subname .. " 3", - recipe = {"moreblocks:stair_" .. subname, "moreblocks:stair_" .. subname}, + output = modname .. ":slab_" .. subname .. " 3", + recipe = {modname .. ":stair_" .. subname, modname .. ":stair_" .. subname}, }) end |