trees.lua.diff 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. 20c20
  2. < if not light_level or light_level < 13 then
  3. ---
  4. > if not light_level or light_level < 10 then
  5. 34c34
  6. < -- Sapling ABM
  7. ---
  8. > -- Grow sapling
  9. 38,39c38,39
  10. < -- try a bit later again
  11. < minetest.get_node_timer(pos):start(math.random(240, 600))
  12. ---
  13. > -- try again 5 min later
  14. > minetest.get_node_timer(pos):start(1)
  15. 97c97
  16. < minetest.get_node_timer(pos):start(math.random(1200, 2400))
  17. ---
  18. > minetest.get_node_timer(pos):start(math.random(10, 11))
  19. 535a536,557
  20. >
  21. >
  22. > -- Important bloody aliases
  23. >
  24. > minetest.register_alias("trees:tree_conifer", "default:pine_tree")
  25. > minetest.register_alias("trees:wood_conifer", "default:pine_wood")
  26. > minetest.register_alias("trees:sapling_conifer", "default:pine_sapling")
  27. > minetest.register_alias("trees:leaves_conifer", "default:pine_needles")
  28. >
  29. > minetest.register_alias("trees:tree_palm", "default:jungletree")
  30. > minetest.register_alias("trees:leaves_palm", "default:jungleleaves")
  31. > minetest.register_alias("trees:sapling_palm", "default:junglesapling")
  32. > minetest.register_alias("trees:wood_palm", "default:junglewood")
  33. >
  34. > minetest.register_alias("trees:tree_mangrove", "default:aspen_tree")
  35. > minetest.register_alias("trees:leaves_mangrove", "default:aspen_leaves")
  36. > minetest.register_alias("trees:sapling_mangrove", "default:aspen_sapling")
  37. > minetest.register_alias("trees:wood_mangrove", "default:aspen_wood")
  38. >
  39. > minetest.register_alias("trees:leaves_red", "default:jungleleaves")
  40. > minetest.register_alias("trees:leaves_yellow", "default:jungleleaves")
  41. > minetest.register_alias("trees:leaves_green", "default:jungleleaves")