vines.lua 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. vines.register_vine( 'root', {
  2. description = "Roots",
  3. average_length = 9,
  4. },{
  5. choose_random_wall = true,
  6. avoid_nodes = {"vines:root_middle"},
  7. avoid_radius = 5,
  8. spawn_delay = 500,
  9. spawn_chance = 10,
  10. spawn_surfaces = {
  11. "default:dirt_with_grass",
  12. "default:dirt"
  13. },
  14. spawn_on_bottom = true,
  15. plantlife_limit = -0.6,
  16. humidity_min = 0.4,
  17. })
  18. vines.register_vine( 'vine', {
  19. description = "Vines",
  20. average_length = 5,
  21. },{
  22. choose_random_wall = true,
  23. avoid_nodes = {"group:vines"},
  24. avoid_radius = 5,
  25. spawn_delay = 500,
  26. spawn_chance = 100,
  27. spawn_surfaces = {
  28. "default:leaves",
  29. "default:jungleleaves",
  30. "moretrees:jungletree_leaves_red",
  31. "moretrees:jungletree_leaves_yellow",
  32. "moretrees:jungletree_leaves_green"
  33. },
  34. spawn_on_bottom = true,
  35. plantlife_limit = -0.9,
  36. humidity_min = 0.7,
  37. })
  38. vines.register_vine( 'side', {
  39. description = "Vines",
  40. average_length = 6,
  41. },{
  42. choose_random_wall = true,
  43. avoid_nodes = {"group:vines", "basictrees:tree_apple"},
  44. choose_random_wall = true,
  45. avoid_radius = 3,
  46. spawn_delay = 500,
  47. spawn_chance = 100,
  48. spawn_surfaces = {
  49. "default:leaves",
  50. "default:jungleleaves",
  51. "moretrees:jungletree_leaves_red",
  52. "moretrees:jungletree_leaves_yellow",
  53. "moretrees:jungletree_leaves_green"
  54. },
  55. spawn_on_side = true,
  56. plantlife_limit = -0.9,
  57. humidity_min = 0.4,
  58. })
  59. vines.register_vine( "jungle", {
  60. description = "Jungle Vines",
  61. average_length = 7,
  62. },{
  63. choose_random_wall = true,
  64. neighbors = {
  65. "default:jungleleaves",
  66. "moretrees:jungletree_leaves_red",
  67. "moretrees:jungletree_leaves_yellow",
  68. "moretrees:jungletree_leaves_green"
  69. },
  70. avoid_nodes = {
  71. "vines:jungle_middle",
  72. "vines:jungle_end",
  73. },
  74. avoid_radius = 5,
  75. spawn_delay = 500,
  76. spawn_chance = 100,
  77. spawn_surfaces = {
  78. "default:jungletree",
  79. "moretrees:jungletree_trunk"
  80. },
  81. spawn_on_side = true,
  82. plantlife_limit = -0.9,
  83. humidity_min = 0.2,
  84. })
  85. vines.register_vine( 'willow', {
  86. description = "Willow Vines",
  87. average_length = 9,
  88. },{
  89. choose_random_wall = true,
  90. avoid_nodes = { "vines:willow_middle" },
  91. avoid_radius = 5,
  92. near_nodes = { 'default:water_source' },
  93. near_nodes_size = 1,
  94. near_nodes_count = 1,
  95. near_nodes_vertical = 7,
  96. plantlife_limit = -0.8,
  97. spawn_chance = 10,
  98. spawn_delay = 500,
  99. spawn_on_side = true,
  100. spawn_surfaces = {"moretrees:willow_leaves"},
  101. humidity_min = 0.5
  102. })