diff --git a/stairsplus/microblocks.lua b/stairsplus/microblocks.lua index 50d8487..ec0d349 100644 --- a/stairsplus/microblocks.lua +++ b/stairsplus/microblocks.lua @@ -95,6 +95,8 @@ function stairsplus:register_micro(modname, subname, recipeitem, fields) def.paramtype2 = def.paramtype2 or "facedir" def.on_place = minetest.rotate_node def.groups = stairsplus:prepare_groups(fields.groups) + def.base_material = recipeitem + def.shape_type = "micro" def.description = desc if fields.drop and not (type(fields.drop) == "table") then def.drop = modname.. ":micro_" ..fields.drop..alternate diff --git a/stairsplus/panels.lua b/stairsplus/panels.lua index 98e77fd..2504420 100644 --- a/stairsplus/panels.lua +++ b/stairsplus/panels.lua @@ -96,6 +96,8 @@ function stairsplus:register_panel(modname, subname, recipeitem, fields) def.on_place = minetest.rotate_node def.description = desc def.groups = stairsplus:prepare_groups(fields.groups) + def.base_material = recipeitem + def.shape_type = "panel" if fields.drop and not (type(fields.drop) == "table") then def.drop = modname.. ":panel_" ..fields.drop..alternate end diff --git a/stairsplus/slabs.lua b/stairsplus/slabs.lua index ea9dbc5..5d1c400 100644 --- a/stairsplus/slabs.lua +++ b/stairsplus/slabs.lua @@ -96,6 +96,8 @@ function stairsplus:register_slab(modname, subname, recipeitem, fields) def.paramtype2 = def.paramtype2 or "facedir" def.on_place = minetest.rotate_node def.groups = stairsplus:prepare_groups(fields.groups) + def.base_material = recipeitem + def.shape_type = "slab" if fields.drop and not (type(fields.drop) == "table") then def.drop = modname.. ":slab_" .. fields.drop .. alternate end diff --git a/stairsplus/slopes.lua b/stairsplus/slopes.lua index 7d18b3d..bece997 100644 --- a/stairsplus/slopes.lua +++ b/stairsplus/slopes.lua @@ -250,6 +250,8 @@ function stairsplus:register_slope(modname, subname, recipeitem, fields) def.on_place = minetest.rotate_node def.description = desc def.groups = stairsplus:prepare_groups(fields.groups) + def.base_material = recipeitem + def.shape_type = "slope" if fields.drop and not (type(fields.drop) == "table") then def.drop = modname.. ":slope_" ..fields.drop..alternate end diff --git a/stairsplus/stairs.lua b/stairsplus/stairs.lua index 0291e7d..bd72ae9 100644 --- a/stairsplus/stairs.lua +++ b/stairsplus/stairs.lua @@ -136,6 +136,8 @@ function stairsplus:register_stair(modname, subname, recipeitem, fields) def.on_place = minetest.rotate_node def.description = desc def.groups = stairsplus:prepare_groups(fields.groups) + def.base_material = recipeitem + def.shape_type = "stair" if fields.drop and not (type(fields.drop) == "table") then def.drop = modname .. ":stair_" .. fields.drop .. alternate end