1
0
forked from MTSR/moreblocks

Make Stairs+ recipes mod-agnostic.

This commit is contained in:
Calinou 2014-07-28 10:02:55 +02:00
parent f7916005c2
commit 3b1392ce04
4 changed files with 57 additions and 57 deletions

View File

@ -86,37 +86,37 @@ function stairsplus:register_micro(modname, subname, recipeitem, fields)
minetest.register_craft({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = "moreblocks:micro_" .. subname .. " 7", output = modname .. ":micro_" .. subname .. " 7",
recipe = {"moreblocks:stair_" .. subname .. "_inner"}, recipe = {modname .. ":stair_" .. subname .. "_inner"},
}) })
minetest.register_craft({ minetest.register_craft({
output = "moreblocks:micro_" .. subname .. " 6", output = modname .. ":micro_" .. subname .. " 6",
type = "shapeless", type = "shapeless",
recipe = {"moreblocks:stair_" .. subname}, recipe = {modname .. ":stair_" .. subname},
}) })
minetest.register_craft({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = "moreblocks:micro_" .. subname .. " 5", output = modname .. ":micro_" .. subname .. " 5",
recipe = {"moreblocks:stair_" .. subname .. "_outer"}, recipe = {modname .. ":stair_" .. subname .. "_outer"},
}) })
minetest.register_craft({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = "moreblocks:micro_" .. subname .. " 4", output = modname .. ":micro_" .. subname .. " 4",
recipe = {"moreblocks:slab_" .. subname}, recipe = {modname .. ":slab_" .. subname},
}) })
minetest.register_craft({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = "moreblocks:micro_" .. subname .. " 2", output = modname .. ":micro_" .. subname .. " 2",
recipe = {"moreblocks:panel_" .. subname}, recipe = {modname .. ":panel_" .. subname},
}) })
minetest.register_craft({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = recipeitem, 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}, recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
}) })
end end

View File

@ -84,7 +84,7 @@ function stairsplus:register_panel(modname, subname, recipeitem, fields)
-- Some saw-less recipes: -- Some saw-less recipes:
minetest.register_craft({ minetest.register_craft({
output = "moreblocks:panel_" .. subname .. " 12", output = modname .. ":panel_" .. subname .. " 12",
recipe = { recipe = {
{recipeitem, ""}, {recipeitem, ""},
{recipeitem, recipeitem}, {recipeitem, recipeitem},
@ -92,7 +92,7 @@ function stairsplus:register_panel(modname, subname, recipeitem, fields)
}) })
minetest.register_craft({ minetest.register_craft({
output = "moreblocks:panel_" .. subname .. " 12", output = modname .. ":panel_" .. subname .. " 12",
recipe = { recipe = {
{"", recipeitem}, {"", recipeitem},
{recipeitem, recipeitem}, {recipeitem, recipeitem},
@ -101,13 +101,13 @@ function stairsplus:register_panel(modname, subname, recipeitem, fields)
minetest.register_craft({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = "moreblocks:panel_" .. subname, output = modname .. ":panel_" .. subname,
recipe = {"moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname}, recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
}) })
minetest.register_craft({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = recipeitem, output = recipeitem,
recipe = {"moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname}, recipe = {modname .. ":panel_" .. subname, modname .. ":panel_" .. subname, modname .. ":panel_" .. subname, modname .. ":panel_" .. subname},
}) })
end end

View File

@ -83,38 +83,38 @@ function stairsplus:register_slab(modname, subname, recipeitem, fields)
-- Some saw-less recipes: -- Some saw-less recipes:
minetest.register_craft({ minetest.register_craft({
output = "moreblocks:slab_" .. subname .. " 6", output = modname .. ":slab_" .. subname .. " 6",
recipe = {{recipeitem, recipeitem, recipeitem}}, recipe = {{recipeitem, recipeitem, recipeitem}},
}) })
minetest.register_craft({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = "moreblocks:slab_" .. subname, output = modname .. ":slab_" .. subname,
recipe = {"moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname}, recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
}) })
minetest.register_craft({ minetest.register_craft({
output = "moreblocks:slab_" .. subname, output = modname .. ":slab_" .. subname,
recipe = {{"moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname}}, recipe = {{modname .. ":panel_" .. subname, modname .. ":panel_" .. subname}},
}) })
minetest.register_craft({ minetest.register_craft({
output = "moreblocks:slab_" .. subname, output = modname .. ":slab_" .. subname,
recipe = { recipe = {
{"moreblocks:panel_" .. subname}, {modname .. ":panel_" .. subname},
{"moreblocks:panel_" .. subname}, {modname .. ":panel_" .. subname},
}, },
}) })
minetest.register_craft({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = recipeitem, output = recipeitem,
recipe = {"moreblocks:slab_" .. subname, "moreblocks:slab_" .. subname}, recipe = {modname .. ":slab_" .. subname, modname .. ":slab_" .. subname},
}) })
minetest.register_craft({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = "moreblocks:slab_" .. subname .. " 3", output = modname .. ":slab_" .. subname .. " 3",
recipe = {"moreblocks:stair_" .. subname, "moreblocks:stair_" .. subname}, recipe = {modname .. ":stair_" .. subname, modname .. ":stair_" .. subname},
}) })
end end

View File

@ -124,7 +124,7 @@ function stairsplus:register_stair(modname, subname, recipeitem, fields)
-- Some saw-less recipes: -- Some saw-less recipes:
minetest.register_craft({ minetest.register_craft({
output = "moreblocks:stair_" .. subname .. " 8", output = modname .. ":stair_" .. subname .. " 8",
recipe = { recipe = {
{recipeitem, "", ""}, {recipeitem, "", ""},
{recipeitem, recipeitem, ""}, {recipeitem, recipeitem, ""},
@ -133,7 +133,7 @@ function stairsplus:register_stair(modname, subname, recipeitem, fields)
}) })
minetest.register_craft({ minetest.register_craft({
output = "moreblocks:stair_" .. subname .. " 8", output = modname .. ":stair_" .. subname .. " 8",
recipe = { recipe = {
{"", "", recipeitem}, {"", "", recipeitem},
{"", recipeitem, recipeitem}, {"", recipeitem, recipeitem},
@ -143,83 +143,83 @@ function stairsplus:register_stair(modname, subname, recipeitem, fields)
minetest.register_craft({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = "moreblocks:stair_" .. subname, output = modname .. ":stair_" .. subname,
recipe = {"moreblocks:panel_" .. subname, "moreblocks:slab_" .. subname}, recipe = {modname .. ":panel_" .. subname, modname .. ":slab_" .. subname},
}) })
minetest.register_craft({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = "moreblocks:stair_" .. subname, output = modname .. ":stair_" .. subname,
recipe = {"moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname}, recipe = {modname .. ":panel_" .. subname, modname .. ":panel_" .. subname, modname .. ":panel_" .. subname},
}) })
minetest.register_craft({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = "moreblocks:stair_" .. subname .. "_outer", output = modname .. ":stair_" .. subname .. "_outer",
recipe = {"moreblocks:micro_" .. subname, "moreblocks:slab_" .. subname}, recipe = {modname .. ":micro_" .. subname, modname .. ":slab_" .. subname},
}) })
minetest.register_craft({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = "moreblocks:stair_" .. subname .. "_half", output = modname .. ":stair_" .. subname .. "_half",
recipe = {"moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname}, recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
}) })
minetest.register_craft({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = "moreblocks:stair_" .. subname .. "_half", output = modname .. ":stair_" .. subname .. "_half",
recipe = {"moreblocks:panel_" .. subname, "moreblocks:micro_" .. subname}, recipe = {modname .. ":panel_" .. subname, modname .. ":micro_" .. subname},
}) })
minetest.register_craft({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = "moreblocks:stair_" .. subname .. "_right_half", output = modname .. ":stair_" .. subname .. "_right_half",
recipe = {"moreblocks:stair_" .. subname .. "_half"}, recipe = {modname .. ":stair_" .. subname .. "_half"},
}) })
minetest.register_craft({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = "moreblocks:stair_" .. subname .. "_half", output = modname .. ":stair_" .. subname .. "_half",
recipe = {"moreblocks:stair_" .. subname .. "_right_half"}, recipe = {modname .. ":stair_" .. subname .. "_right_half"},
}) })
minetest.register_craft({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = "moreblocks:stair_" .. subname, output = modname .. ":stair_" .. subname,
recipe = {"moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname}, recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
}) })
minetest.register_craft({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = "moreblocks:stair_" .. subname .. "_inner", output = modname .. ":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}, 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({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = "moreblocks:stair_" .. subname .. "_outer", output = modname .. ":stair_" .. subname .. "_outer",
recipe = {"moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname}, recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
}) })
minetest.register_craft({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = "moreblocks:stair_" .. subname, output = modname .. ":stair_" .. subname,
recipe = {"moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname}, recipe = {modname .. ":panel_" .. subname, modname .. ":panel_" .. subname, modname .. ":panel_" .. subname},
}) })
minetest.register_craft({ -- See mirrored variation of the recipe below. minetest.register_craft({ -- See mirrored variation of the recipe below.
output = "moreblocks:stair_" .. subname .. "_alt", output = modname .. ":stair_" .. subname .. "_alt",
recipe = { recipe = {
{"moreblocks:panel_" .. subname, ""}, {modname .. ":panel_" .. subname, ""},
{"" , "moreblocks:panel_" .. subname}, {"" , modname .. ":panel_" .. subname},
}, },
}) })
minetest.register_craft({ -- Mirrored variation of the recipe above. minetest.register_craft({ -- Mirrored variation of the recipe above.
output = "moreblocks:stair_" .. subname .. "_alt", output = modname .. ":stair_" .. subname .. "_alt",
recipe = { recipe = {
{"" , "moreblocks:panel_" .. subname}, {"" , modname .. ":panel_" .. subname},
{"moreblocks:panel_" .. subname, ""}, {modname .. ":panel_" .. subname, ""},
}, },
}) })
end end