mirror of
https://github.com/minetest-mods/moreblocks.git
synced 2025-07-01 07:30:43 +02:00
Code cleanup, new Stairs+ recipes.
This commit is contained in:
@ -115,11 +115,11 @@ function stairsplus:register_stair(modname, subname, recipeitem, fields)
|
||||
end
|
||||
def.description = desc
|
||||
if fields.drop then
|
||||
def.drop = modname..":stair_"..fields.drop..alternate
|
||||
def.drop = modname.. ":stair_" ..fields.drop..alternate
|
||||
end
|
||||
minetest.register_node(":"..modname..":stair_"..subname..alternate, def)
|
||||
minetest.register_node(":" ..modname.. ":stair_" ..subname..alternate, def)
|
||||
end
|
||||
minetest.register_alias(":stairs:stair_"..subname, modname..":stair_"..subname)
|
||||
minetest.register_alias(":stairs:stair_" ..subname, modname.. ":stair_" ..subname)
|
||||
|
||||
-- Some saw-less recipes:
|
||||
|
||||
@ -206,4 +206,20 @@ function stairsplus:register_stair(modname, subname, recipeitem, fields)
|
||||
output = "moreblocks:stair_" .. subname,
|
||||
recipe = {"moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname},
|
||||
})
|
||||
|
||||
minetest.register_craft({ -- See mirrored variation of the recipe below.
|
||||
output = "moreblocks:stair_" .. subname .. "_alt",
|
||||
recipe = {
|
||||
{"moreblocks:panel_" .. subname, ""},
|
||||
{"" , "moreblocks:panel_" .. subname},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({ -- Mirrored variation of the recipe above.
|
||||
output = "moreblocks:stair_" .. subname .. "_alt",
|
||||
recipe = {
|
||||
{"" , "moreblocks:panel_" .. subname},
|
||||
{"moreblocks:panel_" .. subname, ""},
|
||||
},
|
||||
})
|
||||
end
|
||||
|
Reference in New Issue
Block a user