mirror of
https://github.com/minetest-mods/moreblocks.git
synced 2024-11-13 05:50:18 +01:00
add stair and slab groups
This commit is contained in:
parent
780df105ea
commit
4c767ad7ff
|
@ -96,6 +96,9 @@ 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)
|
||||
if alternate == "" then
|
||||
def.groups.slab = 1
|
||||
end
|
||||
if fields.drop and not (type(fields.drop) == "table") then
|
||||
def.drop = modname.. ":slab_" .. fields.drop .. alternate
|
||||
end
|
||||
|
|
|
@ -136,6 +136,9 @@ function stairsplus:register_stair(modname, subname, recipeitem, fields)
|
|||
def.on_place = minetest.rotate_node
|
||||
def.description = desc
|
||||
def.groups = stairsplus:prepare_groups(fields.groups)
|
||||
if alternate == "" then
|
||||
def.groups.stair = 1
|
||||
end
|
||||
if fields.drop and not (type(fields.drop) == "table") then
|
||||
def.drop = modname .. ":stair_" .. fields.drop .. alternate
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user