forked from minetest-mods/moreblocks
New recipes, code cleanup.
This commit is contained in:
parent
fb227f2a01
commit
abfd2adcfd
@ -82,29 +82,26 @@ function stairsplus:register_micro(modname, subname, recipeitem, fields)
|
|||||||
|
|
||||||
minetest.register_alias(modname..":micro_"..subname.."_bottom", modname..":micro_"..subname)
|
minetest.register_alias(modname..":micro_"..subname.."_bottom", modname..":micro_"..subname)
|
||||||
|
|
||||||
-- Some saw-less recipe.
|
-- Some saw-less recipes:
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:micro_" .. subname .. " 6",
|
output = "moreblocks:micro_" .. subname .. " 6",
|
||||||
recipe = {
|
recipe = {{"moreblocks:stair_" .. subname}},
|
||||||
{"moreblocks:stair_" .. subname},
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
|
||||||
output = "moreblocks:micro_" .. subname .. " 4",
|
minetest.register_craft({
|
||||||
recipe = {
|
output = "moreblocks:micro_" .. subname .. " 4",
|
||||||
{"moreblocks:slab_" .. subname},
|
recipe = {{"moreblocks:slab_" .. subname}},
|
||||||
},
|
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
|
||||||
output = "moreblocks:micro_" .. subname .. " 2",
|
minetest.register_craft({
|
||||||
recipe = {
|
output = "moreblocks:micro_" .. subname .. " 2",
|
||||||
{"moreblocks:panel_" .. subname},
|
recipe = {{"moreblocks:panel_" .. subname}},
|
||||||
},
|
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
minetest.register_craft({
|
||||||
output = recipeitem,
|
type = "shapeless",
|
||||||
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},
|
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},
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
@ -18,7 +18,6 @@ function register_panel(modname, subname, recipeitem, groups, images, descriptio
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function stairsplus:register_panel(modname, subname, recipeitem, fields)
|
function stairsplus:register_panel(modname, subname, recipeitem, fields)
|
||||||
local defs = {
|
local defs = {
|
||||||
[""] = {
|
[""] = {
|
||||||
@ -82,30 +81,33 @@ function stairsplus:register_panel(modname, subname, recipeitem, fields)
|
|||||||
end
|
end
|
||||||
minetest.register_alias(modname..":panel_"..subname.."_bottom", modname..":panel_"..subname)
|
minetest.register_alias(modname..":panel_"..subname.."_bottom", modname..":panel_"..subname)
|
||||||
|
|
||||||
-- Some saw-less recipe.
|
-- Some saw-less recipes:
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "moreblocks:panel_" .. subname .. " 12",
|
||||||
|
recipe = {
|
||||||
|
{recipeitem, ""},
|
||||||
|
{recipeitem, recipeitem},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:panel_" .. subname .. " 12",
|
output = "moreblocks:panel_" .. subname .. " 12",
|
||||||
recipe = {
|
recipe = {
|
||||||
{recipeitem, ""},
|
{"", recipeitem},
|
||||||
{recipeitem, recipeitem},
|
{recipeitem, recipeitem},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
|
||||||
output = "moreblocks:panel_" .. subname .. " 12",
|
minetest.register_craft({
|
||||||
recipe = {
|
type = "shapeless",
|
||||||
{"", recipeitem},
|
output = "moreblocks:panel_" .. subname,
|
||||||
{recipeitem, recipeitem},
|
recipe = {"moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname},
|
||||||
},
|
})
|
||||||
})
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "moreblocks:panel_" .. subname,
|
output = recipeitem,
|
||||||
recipe = {"moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname},
|
recipe = {"moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname},
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = recipeitem,
|
|
||||||
recipe = {"moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname},
|
|
||||||
})
|
|
||||||
end
|
end
|
||||||
|
@ -80,22 +80,34 @@ function stairsplus:register_slab(modname, subname, recipeitem, fields)
|
|||||||
end
|
end
|
||||||
minetest.register_alias("stairs:slab_"..subname, modname..":slab_"..subname)
|
minetest.register_alias("stairs:slab_"..subname, modname..":slab_"..subname)
|
||||||
|
|
||||||
-- Some saw-less recipe.
|
-- Some saw-less recipes:
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:slab_" .. subname .. " 6",
|
output = "moreblocks:slab_" .. subname .. " 6",
|
||||||
recipe = {
|
recipe = {{recipeitem, recipeitem, recipeitem}},
|
||||||
{recipeitem, recipeitem, recipeitem},
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "moreblocks:slab_" .. subname,
|
output = "moreblocks:slab_" .. subname,
|
||||||
recipe = {"moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname},
|
recipe = {"moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "moreblocks:slab_" .. subname,
|
output = "moreblocks:slab_" .. subname,
|
||||||
recipe = {"moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname},
|
recipe = {"moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = recipeitem,
|
||||||
|
recipe = {"moreblocks:slab_" .. subname, "moreblocks:slab_" .. subname},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = "moreblocks:slab_" .. subname .. " 3",
|
||||||
|
recipe = {"moreblocks:stair_" .. subname, "moreblocks:stair_" .. subname},
|
||||||
|
})
|
||||||
end
|
end
|
||||||
|
@ -121,72 +121,89 @@ function stairsplus:register_stair(modname, subname, recipeitem, fields)
|
|||||||
end
|
end
|
||||||
minetest.register_alias(":stairs:stair_"..subname, modname..":stair_"..subname)
|
minetest.register_alias(":stairs:stair_"..subname, modname..":stair_"..subname)
|
||||||
|
|
||||||
-- Some saw-less recipes.
|
-- Some saw-less recipes:
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:stair_" .. subname .. " 8",
|
output = "moreblocks:stair_" .. subname .. " 8",
|
||||||
recipe = {
|
recipe = {
|
||||||
{recipeitem, "", ""},
|
{recipeitem, "", ""},
|
||||||
{recipeitem, recipeitem, ""},
|
{recipeitem, recipeitem, ""},
|
||||||
{recipeitem, recipeitem, recipeitem},
|
{recipeitem, recipeitem, recipeitem},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:stair_" .. subname .. " 8",
|
output = "moreblocks:stair_" .. subname .. " 8",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"", "", recipeitem},
|
{"", "", recipeitem},
|
||||||
{"", recipeitem, recipeitem},
|
{"", recipeitem, recipeitem},
|
||||||
{recipeitem, recipeitem, recipeitem},
|
{recipeitem, recipeitem, recipeitem},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
|
||||||
output = "moreblocks:stair_" .. subname,
|
minetest.register_craft({
|
||||||
recipe = {
|
type = "shapeless",
|
||||||
{"moreblocks:panel_" .. subname},
|
output = "moreblocks:stair_" .. subname,
|
||||||
{"moreblocks:slab_" .. subname},
|
recipe = {"moreblocks:panel_" .. subname, "moreblocks:slab_" .. subname},
|
||||||
},
|
})
|
||||||
})
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:stair_" .. subname .. "_outer",
|
type = "shapeless",
|
||||||
recipe = {
|
output = "moreblocks:stair_" .. subname,
|
||||||
{"moreblocks:micro_" .. subname},
|
recipe = {"moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname},
|
||||||
{"moreblocks:slab_" .. subname},
|
})
|
||||||
},
|
|
||||||
})
|
minetest.register_craft({
|
||||||
minetest.register_craft({
|
type = "shapeless",
|
||||||
type = "shapeless",
|
output = "moreblocks:stair_" .. subname .. "_outer",
|
||||||
output = "moreblocks:stair_" .. subname .. "_half",
|
recipe = {"moreblocks:micro_" .. subname, "moreblocks:slab_" .. subname},
|
||||||
recipe = {"moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname},
|
})
|
||||||
})
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "moreblocks:stair_" .. subname .. "_right_half",
|
output = "moreblocks:stair_" .. subname .. "_half",
|
||||||
recipe = {"moreblocks:stair_" .. subname .. "_half"},
|
recipe = {"moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname},
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
minetest.register_craft({
|
||||||
output = "moreblocks:stair_" .. subname .. "_half",
|
type = "shapeless",
|
||||||
recipe = {"moreblocks:stair_" .. subname .. "_right_half"},
|
output = "moreblocks:stair_" .. subname .. "_half",
|
||||||
})
|
recipe = {"moreblocks:panel_" .. subname, "moreblocks:micro_" .. subname},
|
||||||
minetest.register_craft({
|
})
|
||||||
type = "shapeless",
|
|
||||||
output = "moreblocks:stair_" .. subname,
|
minetest.register_craft({
|
||||||
recipe = {"moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname},
|
type = "shapeless",
|
||||||
})
|
output = "moreblocks:stair_" .. subname .. "_right_half",
|
||||||
minetest.register_craft({
|
recipe = {"moreblocks:stair_" .. subname .. "_half"},
|
||||||
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},
|
minetest.register_craft({
|
||||||
})
|
type = "shapeless",
|
||||||
minetest.register_craft({
|
output = "moreblocks:stair_" .. subname .. "_half",
|
||||||
type = "shapeless",
|
recipe = {"moreblocks:stair_" .. subname .. "_right_half"},
|
||||||
output = "moreblocks:stair_" .. subname .. "_outer",
|
})
|
||||||
recipe = {"moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname},
|
|
||||||
})
|
minetest.register_craft({
|
||||||
minetest.register_craft({
|
type = "shapeless",
|
||||||
type = "shapeless",
|
output = "moreblocks:stair_" .. subname,
|
||||||
output = "moreblocks:stair_" .. subname,
|
recipe = {"moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname},
|
||||||
recipe = {"moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname, "moreblocks:panel_" .. 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},
|
||||||
|
})
|
||||||
|
|
||||||
|
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},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = "moreblocks:stair_" .. subname,
|
||||||
|
recipe = {"moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname},
|
||||||
|
})
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user