mirror of
https://github.com/minetest-mods/moreblocks.git
synced 2024-11-16 15:30:17 +01:00
add shape_type and base_material attributes to item definition
This commit is contained in:
parent
e9c6cef4dd
commit
0f09b6a8f2
|
@ -95,6 +95,8 @@ function stairsplus:register_micro(modname, subname, recipeitem, fields)
|
||||||
def.paramtype2 = def.paramtype2 or "facedir"
|
def.paramtype2 = def.paramtype2 or "facedir"
|
||||||
def.on_place = minetest.rotate_node
|
def.on_place = minetest.rotate_node
|
||||||
def.groups = stairsplus:prepare_groups(fields.groups)
|
def.groups = stairsplus:prepare_groups(fields.groups)
|
||||||
|
def.base_material = recipeitem
|
||||||
|
def.shape_type = "micro"
|
||||||
def.description = desc
|
def.description = desc
|
||||||
if fields.drop and not (type(fields.drop) == "table") then
|
if fields.drop and not (type(fields.drop) == "table") then
|
||||||
def.drop = modname.. ":micro_" ..fields.drop..alternate
|
def.drop = modname.. ":micro_" ..fields.drop..alternate
|
||||||
|
|
|
@ -96,6 +96,8 @@ function stairsplus:register_panel(modname, subname, recipeitem, fields)
|
||||||
def.on_place = minetest.rotate_node
|
def.on_place = minetest.rotate_node
|
||||||
def.description = desc
|
def.description = desc
|
||||||
def.groups = stairsplus:prepare_groups(fields.groups)
|
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
|
if fields.drop and not (type(fields.drop) == "table") then
|
||||||
def.drop = modname.. ":panel_" ..fields.drop..alternate
|
def.drop = modname.. ":panel_" ..fields.drop..alternate
|
||||||
end
|
end
|
||||||
|
|
|
@ -96,6 +96,8 @@ function stairsplus:register_slab(modname, subname, recipeitem, fields)
|
||||||
def.paramtype2 = def.paramtype2 or "facedir"
|
def.paramtype2 = def.paramtype2 or "facedir"
|
||||||
def.on_place = minetest.rotate_node
|
def.on_place = minetest.rotate_node
|
||||||
def.groups = stairsplus:prepare_groups(fields.groups)
|
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
|
if fields.drop and not (type(fields.drop) == "table") then
|
||||||
def.drop = modname.. ":slab_" .. fields.drop .. alternate
|
def.drop = modname.. ":slab_" .. fields.drop .. alternate
|
||||||
end
|
end
|
||||||
|
|
|
@ -250,6 +250,8 @@ function stairsplus:register_slope(modname, subname, recipeitem, fields)
|
||||||
def.on_place = minetest.rotate_node
|
def.on_place = minetest.rotate_node
|
||||||
def.description = desc
|
def.description = desc
|
||||||
def.groups = stairsplus:prepare_groups(fields.groups)
|
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
|
if fields.drop and not (type(fields.drop) == "table") then
|
||||||
def.drop = modname.. ":slope_" ..fields.drop..alternate
|
def.drop = modname.. ":slope_" ..fields.drop..alternate
|
||||||
end
|
end
|
||||||
|
|
|
@ -136,6 +136,8 @@ function stairsplus:register_stair(modname, subname, recipeitem, fields)
|
||||||
def.on_place = minetest.rotate_node
|
def.on_place = minetest.rotate_node
|
||||||
def.description = desc
|
def.description = desc
|
||||||
def.groups = stairsplus:prepare_groups(fields.groups)
|
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
|
if fields.drop and not (type(fields.drop) == "table") then
|
||||||
def.drop = modname .. ":stair_" .. fields.drop .. alternate
|
def.drop = modname .. ":stair_" .. fields.drop .. alternate
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user