changed shape_type to group. Gived up base_material

This commit is contained in:
Alexander Weber 2017-03-16 22:57:44 +01:00
parent 0f09b6a8f2
commit 3a3ade66f5
5 changed files with 5 additions and 10 deletions

View File

@ -95,8 +95,7 @@ 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.groups.micro = 1
def.description = desc
if fields.drop and not (type(fields.drop) == "table") then
def.drop = modname.. ":micro_" ..fields.drop..alternate

View File

@ -96,8 +96,7 @@ 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"
def.groups.panel = 1
if fields.drop and not (type(fields.drop) == "table") then
def.drop = modname.. ":panel_" ..fields.drop..alternate
end

View File

@ -96,8 +96,7 @@ 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"
def.groups.slab = 1
if fields.drop and not (type(fields.drop) == "table") then
def.drop = modname.. ":slab_" .. fields.drop .. alternate
end

View File

@ -250,8 +250,7 @@ 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"
def.groups.slope = 1
if fields.drop and not (type(fields.drop) == "table") then
def.drop = modname.. ":slope_" ..fields.drop..alternate
end

View File

@ -136,8 +136,7 @@ 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"
def.groups.stair = 1
if fields.drop and not (type(fields.drop) == "table") then
def.drop = modname .. ":stair_" .. fields.drop .. alternate
end