mirror of
https://github.com/minetest-mods/moreblocks.git
synced 2024-11-05 01:40:36 +01:00
New recipes for Stairs+ nodes. Allows crafting most useful Stairs+ nodes. More accurate nodes still require the usage of the circular saw.
This commit is contained in:
parent
4cd994e385
commit
d335d0dd3c
|
@ -83,5 +83,31 @@ function stairsplus:register_micro(modname, subname, recipeitem, fields)
|
|||
end
|
||||
|
||||
minetest.register_alias(modname..":micro_"..subname.."_bottom", modname..":micro_"..subname)
|
||||
|
||||
-- Some saw-less recipe.
|
||||
|
||||
minetest.register_craft({
|
||||
output = "moreblocks:micro_" .. subname .. " 6",
|
||||
recipe = {
|
||||
{"moreblocks:stair_" .. subname},
|
||||
},
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "moreblocks:micro_" .. subname .. " 4",
|
||||
recipe = {
|
||||
{"moreblocks:slab_" .. subname},
|
||||
},
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "moreblocks:micro_" .. subname .. " 2",
|
||||
recipe = {
|
||||
{"moreblocks:panel_" .. subname},
|
||||
},
|
||||
})
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
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
|
||||
|
||||
|
|
|
@ -82,7 +82,33 @@ function stairsplus:register_panel(modname, subname, recipeitem, fields)
|
|||
end
|
||||
minetest.register_node(":"..modname..":panel_"..subname..alternate, def)
|
||||
end
|
||||
|
||||
minetest.register_alias(modname..":panel_"..subname.."_bottom", modname..":panel_"..subname)
|
||||
|
||||
-- Some saw-less recipe.
|
||||
|
||||
minetest.register_craft({
|
||||
output = "moreblocks:panel_" .. subname .. " 12",
|
||||
recipe = {
|
||||
{recipeitem, ""},
|
||||
{recipeitem, recipeitem},
|
||||
},
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "moreblocks:panel_" .. subname .. " 12",
|
||||
recipe = {
|
||||
{"", recipeitem},
|
||||
{recipeitem, recipeitem},
|
||||
},
|
||||
})
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "moreblocks:panel_" .. subname,
|
||||
recipe = {"moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname},
|
||||
})
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = recipeitem,
|
||||
recipe = {"moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname},
|
||||
})
|
||||
end
|
||||
|
||||
|
|
|
@ -82,15 +82,23 @@ function stairsplus:register_slab(modname, subname, recipeitem, fields)
|
|||
end
|
||||
minetest.register_alias("stairs:slab_"..subname, modname..":slab_"..subname)
|
||||
|
||||
-- Unregister default recipes, optional, see config.lua
|
||||
-- Some saw-less recipe.
|
||||
|
||||
if not moreblocks.config.allow_stair_slab_crafting then
|
||||
minetest.register_craft({
|
||||
output = "moreblocks:nothing 1",
|
||||
output = "moreblocks:slab_" .. subname .. " 6",
|
||||
recipe = {
|
||||
{recipeitem, recipeitem, recipeitem},
|
||||
},
|
||||
})
|
||||
end
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "moreblocks:slab_" .. subname,
|
||||
recipe = {"moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname},
|
||||
})
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "moreblocks:slab_" .. subname,
|
||||
recipe = {"moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname},
|
||||
})
|
||||
end
|
||||
|
||||
|
|
|
@ -123,12 +123,10 @@ function stairsplus:register_stair(modname, subname, recipeitem, fields)
|
|||
end
|
||||
minetest.register_alias(":stairs:stair_"..subname, modname..":stair_"..subname)
|
||||
|
||||
|
||||
-- Unregister default recipes, optional, see config.lua
|
||||
|
||||
if not moreblocks.config.allow_stair_slab_crafting then
|
||||
-- Some saw-less recipes.
|
||||
|
||||
minetest.register_craft({
|
||||
output = "moreblocks:nothing 1",
|
||||
output = "moreblocks:stair_" .. subname .. " 8",
|
||||
recipe = {
|
||||
{recipeitem, "", ""},
|
||||
{recipeitem, recipeitem, ""},
|
||||
|
@ -137,13 +135,61 @@ function stairsplus:register_stair(modname, subname, recipeitem, fields)
|
|||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "moreblocks:nothing 1",
|
||||
output = "moreblocks:stair_" .. subname .. " 8",
|
||||
recipe = {
|
||||
{"", "", recipeitem},
|
||||
{"", recipeitem, recipeitem},
|
||||
{recipeitem, recipeitem, recipeitem},
|
||||
},
|
||||
})
|
||||
end
|
||||
minetest.register_craft({
|
||||
output = "moreblocks:stair_" .. subname,
|
||||
recipe = {
|
||||
{"moreblocks:panel_" .. subname},
|
||||
{"moreblocks:slab_" .. subname},
|
||||
},
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "moreblocks:stair_" .. subname .. "_outer",
|
||||
recipe = {
|
||||
{"moreblocks:micro_" .. subname},
|
||||
{"moreblocks:slab_" .. subname},
|
||||
},
|
||||
})
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "moreblocks:stair_" .. subname .. "_half",
|
||||
recipe = {"moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname, "moreblocks:micro_" .. subname},
|
||||
})
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "moreblocks:stair_" .. subname .. "_right_half",
|
||||
recipe = {"moreblocks:stair_" .. subname .. "_half"},
|
||||
})
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "moreblocks:stair_" .. subname .. "_half",
|
||||
recipe = {"moreblocks: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},
|
||||
})
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user