mirror of
https://github.com/minetest-mods/moreblocks.git
synced 2025-07-01 07:30:43 +02:00
add stair and slab groups
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user