add stair and slab groups

这个提交包含在:
DS-Minetest
2017-08-22 16:15:53 +02:00
提交者 sofar
父节点 780df105ea
当前提交 4c767ad7ff
共有 2 个文件被更改,包括 6 次插入0 次删除

查看文件

@@ -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