Skip to content

Commit

Permalink
Add Support for moretrees mod
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas--S committed Apr 22, 2016
1 parent 8308986 commit 783ea46
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions depends.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
default
moretrees?
14 changes: 14 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ ts_furniture = {}
-- If true, you can sit on chairs and benches, when right-click them.
ts_furniture.enable_sitting = true


-- The following code is from "Get Comfortable [cozy]" (by everamzah; published under WTFPL).
-- Thomas S. modified it, so that it can be used in this mod
minetest.register_globalstep(function(dtime)
Expand Down Expand Up @@ -180,3 +181,16 @@ ts_furniture.register_furniture("default:pine_wood" , "Pine" , "default_p
ts_furniture.register_furniture("default:acacia_wood", "Acacia" , "default_acacia_wood.png")
ts_furniture.register_furniture("default:wood" , "Wooden" , "default_wood.png" )
ts_furniture.register_furniture("default:junglewood" , "Jungle Wood", "default_junglewood.png" )

if(minetest.get_modpath("moretrees")) then
ts_furniture.register_furniture("moretrees:apple_tree_planks", "Apple Tree", "moretrees_apple_tree_wood.png")
ts_furniture.register_furniture("moretrees:beech_planks", "Beech", "moretrees_beech_wood.png")
ts_furniture.register_furniture("moretrees:birch_planks", "Birch", "moretrees_birch_wood.png")
ts_furniture.register_furniture("moretrees:fir_planks", "Fir", "moretrees_fir_wood.png")
ts_furniture.register_furniture("moretrees:oak_planks", "Oak", "moretrees_oak_wood.png")
ts_furniture.register_furniture("moretrees:palm_planks", "Palm", "moretrees_palm_wood.png")
ts_furniture.register_furniture("moretrees:rubber_tree_planks", "Rubber Tree", "moretrees_rubber_tree_wood.png")
ts_furniture.register_furniture("moretrees:sequoia_planks", "Sequoia", "moretrees_sequoia_wood.png")
ts_furniture.register_furniture("moretrees:spruce_planks", "Spruce", "moretrees_spruce_wood.png")
ts_furniture.register_furniture("moretrees:willow_planks", "Willow", "moretrees_willow_wood.png")
end

0 comments on commit 783ea46

Please sign in to comment.