allow passing paramtype2 to the nodes being created (#65)

This commit is contained in:
Vanessa Ezekowitz 2017-01-26 16:11:45 -05:00 committed by Hugo Locurcio
parent 81f77ae97e
commit cf1b054a99
5 changed files with 5 additions and 5 deletions

View File

@ -88,7 +88,7 @@ function stairsplus:register_micro(modname, subname, recipeitem, fields)
end
def.drawtype = "nodebox"
def.paramtype = "light"
def.paramtype2 = "facedir"
def.paramtype2 = def.paramtype2 or "facedir"
def.on_place = minetest.rotate_node
def.groups = stairsplus:prepare_groups(fields.groups)
def.description = desc

View File

@ -88,7 +88,7 @@ function stairsplus:register_panel(modname, subname, recipeitem, fields)
end
def.drawtype = "nodebox"
def.paramtype = "light"
def.paramtype2 = "facedir"
def.paramtype2 = def.paramtype2 or "facedir"
def.on_place = minetest.rotate_node
def.description = desc
def.groups = stairsplus:prepare_groups(fields.groups)

View File

@ -59,7 +59,7 @@ function stairsplus:register_slab(modname, subname, recipeitem, fields)
end
def.drawtype = "nodebox"
def.paramtype = "light"
def.paramtype2 = "facedir"
def.paramtype2 = def.paramtype2 or "facedir"
def.on_place = minetest.rotate_node
def.description = ("%s (%d/16)"):format(desc_base, num)
def.groups = stairsplus:prepare_groups(fields.groups)

View File

@ -242,7 +242,7 @@ function stairsplus:register_slope(modname, subname, recipeitem, fields)
end
def.drawtype = "mesh"
def.paramtype = "light"
def.paramtype2 = "facedir"
def.paramtype2 = def.paramtype2 or "facedir"
def.on_place = minetest.rotate_node
def.description = desc
def.groups = stairsplus:prepare_groups(fields.groups)

View File

@ -128,7 +128,7 @@ function stairsplus:register_stair(modname, subname, recipeitem, fields)
end
def.drawtype = "nodebox"
def.paramtype = "light"
def.paramtype2 = "facedir"
def.paramtype2 = def.paramtype2 or "facedir"
def.on_place = minetest.rotate_node
def.description = desc
def.groups = stairsplus:prepare_groups(fields.groups)