init.lua 854 B

12345678910111213141516171819202122232425262728293031323334
  1. --[[
  2. Epic Trees
  3. Created by Xachman
  4. ]]
  5. epic_trees = {
  6. }
  7. local path = minetest.get_modpath("epic_trees")
  8. dofile(path .. "/wood.lua")
  9. dofile(path .. "/sapling.lua")
  10. dofile(path .. "/schems.lua")
  11. dofile(path .. "/food.lua")
  12. dofile(path .. "/leaves.lua")
  13. if minetest.get_modpath("lumberjack") and minetest.global_exists("lumberjack") then
  14. lumberjack.register_tree("epic_trees:banana_trunk", "epic_trees:banana_tree_sapling", 1, 3)
  15. end
  16. if minetest.get_modpath("bonemeal") and minetest.global_exists("bonemeal") then
  17. bonemeal:add_sapling({
  18. {"epic_trees:banana_tree_sapling", epic_trees.grow_banana_tree, "soil"},
  19. {"epic_trees:banana_tree_sapling", epic_trees.grow_banana_tree, "sand"},
  20. {"epic_trees:orange_tree_sapling", epic_trees.grow_orange_tree, "soil"},
  21. {"epic_trees:orange_tree_sapling", epic_trees.grow_orange_tree, "sand"}
  22. })
  23. end