summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorSokomine <wegwerf@anarres.dyndns.org>2015-07-26 03:03:57 +0200
committerSokomine <wegwerf@anarres.dyndns.org>2015-07-26 03:03:57 +0200
commitd92685d20c6bebce0a88512991646a16121b0810 (patch)
tree9a5c9ed4a6260fddeb3221782742c40dfba76fd5 /init.lua
parent5f80623617c8bb1e605d3b1324146027509b5991 (diff)
added some missing textures so it can be used with subgames that do not contain default
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua23
1 files changed, 23 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 2bb4244..7baec8a 100644
--- a/init.lua
+++ b/init.lua
@@ -24,6 +24,29 @@ cottages = {}
-- uncomment parts you do not want
+-- texture used for fence gate and bed posts
+cottages.texture_furniture = "default_wood.png";
+-- texture for the side of roof nodes
+cottages.texture_roof_sides = "default_wood.png";
+-- if the default wood node does not exist, use an alternate wood texture
+-- (which is also used for furnitures and doors in this mod)
+if( not( minetest.registered_nodes['default:wood'])) then
+ cottages.texture_roof_sides = "cottages_minimal_wood.png";
+ cottages.texture_furniture = "cottages_minimal_wood.png";
+end
+
+-- texture for roofs where the tree bark is the main roof texture
+cottages.textures_roof_wood = "default_tree.png";
+if( not( minetest.registered_nodes["default:tree"])) then
+ -- realtest has diffrent barks; the spruce one seems to be the most fitting
+ if( minetest.registered_nodes["trees:spruce_log" ]) then
+ cottages.textures_roof_wood = "trees_spruce_trunk.png";
+ else
+ -- does not look so well in this case as it's no bark; but what else shall we do?
+ cottages.textures_roof_wood = "cottages_minimal_wood.png";
+ end
+end
+
dofile(minetest.get_modpath("cottages").."/nodes_furniture.lua");
dofile(minetest.get_modpath("cottages").."/nodes_historic.lua");
dofile(minetest.get_modpath("cottages").."/nodes_straw.lua");