diff options
Diffstat (limited to 'nodes_roof.lua')
-rw-r--r-- | nodes_roof.lua | 35 |
1 files changed, 23 insertions, 12 deletions
diff --git a/nodes_roof.lua b/nodes_roof.lua index 7cecda5..2c891cf 100644 --- a/nodes_roof.lua +++ b/nodes_roof.lua @@ -18,7 +18,7 @@ cottages.register_roof = function( name, tiles, basic_material, homedecor_altern minetest.register_node("cottages:roof_"..name, { description = S("Roof "..name), drawtype = "nodebox", - --tiles = {"default_tree.png","default_wood.png","default_wood.png","default_wood.png","default_wood.png","default_tree.png"}, + --tiles = {cottages.textures_roof_wood,cottages.texture_roof_sides,cottages.texture_roof_sides,cottages.texture_roof_sides,cottages.texture_roof_sides,cottages.textures_roof_wood}, tiles = tiles, paramtype = "light", paramtype2 = "facedir", @@ -45,8 +45,6 @@ cottages.register_roof = function( name, tiles, basic_material, homedecor_altern description = S("Roof connector "..name), drawtype = "nodebox", -- top, bottom, side1, side2, inner, outer - --tiles = {"default_tree.png","default_wood.png","default_tree.png","default_tree.png","default_wood.png","default_tree.png"}, - --tiles = {"darkage_straw.png","default_wood.png","darkage_straw.png","darkage_straw.png","darkage_straw.png","darkage_straw.png"}, tiles = tiles, paramtype = "light", paramtype2 = "facedir", @@ -73,7 +71,6 @@ cottages.register_roof = function( name, tiles, basic_material, homedecor_altern description = S("Roof (flat) "..name), drawtype = "nodebox", -- top, bottom, side1, side2, inner, outer - --tiles = {"default_tree.png","default_wood.png","default_tree.png","default_tree.png","default_wood.png","default_tree.png"}, -- this one is from all sides - except from the underside - of the given material tiles = { tiles[1], tiles[2], tiles[1], tiles[1], tiles[1], tiles[1] }; paramtype = "light", @@ -155,25 +152,39 @@ end -- of cottages.register_roof( name, tiles, basic_material ) -- add the diffrent roof types --------------------------------------------------------------------------------------- cottages.register_roof( 'straw', - {"cottages_darkage_straw.png","cottages_darkage_straw.png","cottages_darkage_straw.png","cottages_darkage_straw.png","cottages_darkage_straw.png","cottages_darkage_straw.png"}, + {"cottages_darkage_straw.png","cottages_darkage_straw.png", + "cottages_darkage_straw.png","cottages_darkage_straw.png", + "cottages_darkage_straw.png","cottages_darkage_straw.png"}, 'cottages:straw_mat', nil ); cottages.register_roof( 'reet', - {"cottages_reet.png","cottages_reet.png","cottages_reet.png","cottages_reet.png","cottages_reet.png","cottages_reet.png"}, + {"cottages_reet.png","cottages_reet.png", + "cottages_reet.png","cottages_reet.png", + "cottages_reet.png","cottages_reet.png"}, 'default:papyrus', nil ); cottages.register_roof( 'wood', - {"default_tree.png","default_wood.png","default_wood.png","default_wood.png","default_wood.png","default_tree.png"}, + {cottages.textures_roof_wood, cottages.texture_roof_sides, + cottages.texture_roof_sides, cottages.texture_roof_sides, + cottages.texture_roof_sides, cottages.textures_roof_wood}, 'default:wood', nil); cottages.register_roof( 'black', - {"cottages_homedecor_shingles_asphalt.png","default_wood.png","default_wood.png","default_wood.png","default_wood.png","cottages_homedecor_shingles_asphalt.png"}, + {"cottages_homedecor_shingles_asphalt.png", cottages.texture_roof_sides, + cottages.texture_roof_sides, cottages.texture_roof_sides, + cottages.texture_roof_sides, "cottages_homedecor_shingles_asphalt.png"}, 'homedecor:shingles_asphalt', 'default:coal_lump'); cottages.register_roof( 'red', - {"cottages_homedecor_shingles_terracotta.png","default_wood.png","default_wood.png","default_wood.png","default_wood.png","cottages_homedecor_shingles_terracotta.png"}, + {"cottages_homedecor_shingles_terracotta.png", cottages.texture_roof_sides, + cottages.texture_roof_sides, cottages.texture_roof_sides, + cottages.texture_roof_sides, "cottages_homedecor_shingles_terracotta.png"}, 'homedecor:shingles_terracotta', 'default:clay_brick'); cottages.register_roof( 'brown', - {"cottages_homedecor_shingles_wood.png","default_wood.png","default_wood.png","default_wood.png","default_wood.png","cottages_homedecor_shingles_wood.png"}, + {"cottages_homedecor_shingles_wood.png", cottages.texture_roof_sides, + cottages.texture_roof_sides, cottages.texture_roof_sides, + cottages.texture_roof_sides, "cottages_homedecor_shingles_wood.png"}, 'homedecor:shingles_wood', 'default:dirt'); cottages.register_roof( 'slate', - {"cottages_slate.png","default_wood.png","cottages_slate.png","cottages_slate.png","default_wood.png","cottages_slate.png"}, + {"cottages_slate.png", cottages.texture_roof_sides, + "cottages_slate.png", "cottages_slate.png", + cottages.texture_roof_sides,"cottages_slate.png"}, 'default:stone', nil); @@ -182,7 +193,7 @@ cottages.register_roof( 'slate', --------------------------------------------------------------------------------------- minetest.register_node("cottages:slate_vertical", { description = S("Vertical Slate"), - tiles = {"cottages_slate.png","default_wood.png","cottages_slate.png","cottages_slate.png","default_wood.png","cottages_slate.png"}, + tiles = {"cottages_slate.png",cottages.texture_roof_sides,"cottages_slate.png","cottages_slate.png",cottages.texture_roof_sides,"cottages_slate.png"}, paramtype2 = "facedir", groups = {cracky=2, stone=1}, sounds = default.node_sound_stone_defaults(), |