aboutsummaryrefslogtreecommitdiff
path: root/stairsplus/panels.lua
diff options
context:
space:
mode:
authorCalinou <calinou@opmbx.org>2014-07-03 19:31:43 +0200
committerCalinou <calinou@opmbx.org>2014-07-03 19:31:43 +0200
commitabfd2adcfdad16d2886880e8652784370cd6ca24 (patch)
treeda081c159b438ffa1d8c9c87045f78899231398a /stairsplus/panels.lua
parentfb227f2a011030deb3c8015b30ac4c7f14acdaaf (diff)
downloadmoreblocks-abfd2adcfdad16d2886880e8652784370cd6ca24.tar.gz
moreblocks-abfd2adcfdad16d2886880e8652784370cd6ca24.tar.bz2
moreblocks-abfd2adcfdad16d2886880e8652784370cd6ca24.zip
New recipes, code cleanup.
Diffstat (limited to 'stairsplus/panels.lua')
-rw-r--r--stairsplus/panels.lua54
1 files changed, 28 insertions, 26 deletions
diff --git a/stairsplus/panels.lua b/stairsplus/panels.lua
index a250fc3..e6f8871 100644
--- a/stairsplus/panels.lua
+++ b/stairsplus/panels.lua
@@ -18,7 +18,6 @@ function register_panel(modname, subname, recipeitem, groups, images, descriptio
})
end
-
function stairsplus:register_panel(modname, subname, recipeitem, fields)
local defs = {
[""] = {
@@ -82,30 +81,33 @@ function stairsplus:register_panel(modname, subname, recipeitem, fields)
end
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({
- 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},
- })
+ 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