Stairs: Allow crafting slabs and stairs into full blocks again
authorWuzzy <almikes@aol.com>
Mon, 22 May 2017 01:20:10 +0000 (03:20 +0200)
committerparamat <mat.gregory@virginmedia.com>
Wed, 14 Jun 2017 19:25:26 +0000 (20:25 +0100)
mods/stairs/init.lua

index 90172ef041b654309a1f4e0dfc50608b9a9442b5..7c6d382398601b9e548aed8cb46e0e1217405de8 100644 (file)
@@ -108,6 +108,15 @@ function stairs.register_stair(subname, recipeitem, groups, images, description,
                        },
                })
 
+               -- Use stairs to craft full blocks again (1:1)
+               minetest.register_craft({
+                       output = recipeitem .. ' 3',
+                       recipe = {
+                               {'stairs:stair_' .. subname, 'stairs:stair_' .. subname},
+                               {'stairs:stair_' .. subname, 'stairs:stair_' .. subname},
+                       },
+               })
+
                -- Fuel
                local baseburntime = minetest.get_craft_result({
                        method = "fuel",
@@ -216,6 +225,15 @@ function stairs.register_slab(subname, recipeitem, groups, images, description,
                        },
                })
 
+               -- Use 2 slabs to craft a full block again (1:1)
+               minetest.register_craft({
+                       output = recipeitem,
+                       recipe = {
+                               {'stairs:slab_' .. subname},
+                               {'stairs:slab_' .. subname},
+                       },
+               })
+
                -- Fuel
                local baseburntime = minetest.get_craft_result({
                        method = "fuel",