biomes.lua 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. minetest.clear_registered_biomes()
  2. -- Below 0
  3. minetest.register_biome({
  4. name = "Sea_Dirt",
  5. node_top = "default:dirt", depth_top = 3,
  6. node_riverbed = "default:dirt", depth_riverbed = 2,
  7. y_min = -32000, y_max = 0,
  8. heat_point = 30, humidity_point = 40,
  9. })
  10. minetest.register_biome({
  11. name = "Sea_Sand",
  12. node_top = "default:sand", depth_top = 3,
  13. node_riverbed = "default:sand", depth_riverbed = 2,
  14. y_min = -32000, y_max = 5,
  15. heat_point = 90, humidity_point = 40,
  16. })
  17. minetest.register_biome({
  18. name = "Sea_Desert_Sand",
  19. node_top = "default:desert_sand", depth_top = 3,
  20. node_filler = "default:desert_stone", depth_filler = 3,
  21. node_riverbed = "default:desert_sand", depth_riverbed = 2,
  22. y_min = -32000, y_max = 5,
  23. heat_point = 110, humidity_point = -60,
  24. })
  25. minetest.register_biome({
  26. name = "Sea_Gravel",
  27. node_top = "default:gravel", depth_top = 3,
  28. node_filler = "default:stone", depth_filler = 3,
  29. node_riverbed = "default:gravel", depth_riverbed = 2,
  30. y_min = -32000, y_max = 5,
  31. heat_point = 30, humidity_point = -60,
  32. })
  33. -- Over 0
  34. -- Woods
  35. minetest.register_biome({
  36. name = "Conifer",
  37. node_top = "default:dirt_with_snow", depth_top = 1,
  38. node_filler = "default:dirt", depth_filler = 2,
  39. node_riverbed = "default:dirt", depth_riverbed = 2,
  40. y_min = 1, y_max = 32000,
  41. heat_point = 00, humidity_point = 70,
  42. })
  43. -- Transition Conifer-Tree
  44. minetest.register_biome({
  45. name = "CT",
  46. node_top = "default:dirt_with_grass", depth_top = 1,
  47. node_filler = "default:dirt", depth_filler = 2,
  48. node_riverbed = "default:dirt", depth_riverbed = 2,
  49. y_min = 1, y_max = 32000,
  50. heat_point = 25, humidity_point = 75,
  51. })
  52. minetest.register_biome({
  53. name = "Tree",
  54. node_top = "default:dirt_with_grass", depth_top = 1,
  55. node_filler = "default:dirt", depth_filler = 3,
  56. node_riverbed = "default:dirt", depth_riverbed = 2,
  57. y_min = 1, y_max = 32000,
  58. heat_point = 50, humidity_point = 80,
  59. })
  60. -- Transition Tree-Jungle
  61. minetest.register_biome({
  62. name = "TJ",
  63. node_top = "default:dirt_with_grass", depth_top = 1,
  64. node_filler = "default:dirt", depth_filler = 4,
  65. node_riverbed = "default:dirt", depth_riverbed = 2,
  66. y_min = 1, y_max = 32000,
  67. heat_point = 90, humidity_point = 75,
  68. })
  69. minetest.register_biome({
  70. name = "Jungle",
  71. node_top = "default:dirt_with_grass", depth_top = 1,
  72. node_filler = "default:dirt", depth_filler = 4,
  73. node_riverbed = "default:dirt", depth_riverbed = 2,
  74. y_min = 1, y_max = 32000,
  75. heat_point = 100, humidity_point = 70,
  76. })
  77. minetest.register_biome({
  78. name = "Desert",
  79. node_top = "default:desert_sand", depth_top = 3,
  80. node_filler = "default:desert_stone", depth_filler = 8,
  81. node_riverbed = "default:sand", depth_riverbed = 2,
  82. y_min = 1, y_max = 32000,
  83. heat_point = 120, humidity_point = -45,
  84. })
  85. -- Special Biomes
  86. minetest.register_biome({
  87. name = "Glacier",
  88. node_top = "default:snowblock", depth_top = 2,
  89. node_filler = "default:ice", depth_filler = 32,
  90. node_water_top = "default:ice", depth_water_top = 3,
  91. node_riverbed = "default:gravel", depth_riverbed = 2,
  92. node_river_water = "default:ice",
  93. y_min = 1, y_max = 32000,
  94. heat_point = -20, humidity_point = -30,
  95. })
  96. minetest.register_biome({
  97. name = "Gravel_Ice",
  98. node_top = "default:gravel", depth_top = 3,
  99. node_dust = "default:snow",
  100. node_water_top = "default:ice", depth_water_top = 3,
  101. node_riverbed = "default:gravel", depth_riverbed = 2,
  102. node_river_water = "default:ice",
  103. y_min = 1, y_max = 32000,
  104. heat_point = -40, humidity_point = -40,
  105. })
  106. minetest.register_biome({
  107. name = "Gravel_Desert",
  108. node_top = "default:gravel", depth_top = 3,
  109. node_filler = "default:desert_stone", depth_filler = 3,
  110. node_riverbed = "default:gravel", depth_riverbed = 2,
  111. y_min = 1, y_max = 32000,
  112. heat_point = 160, humidity_point = -20,
  113. })
  114. -- Decoration
  115. minetest.register_decoration({
  116. deco_type = "schematic",
  117. place_on = {"default:dirt_with_snow", "default:dirt_with_grass"},
  118. sidelen = 16,
  119. noise_params = {
  120. offset = 0.00,
  121. scale = 0.020,
  122. spread = {x = 250, y = 250, z = 250},
  123. seed = 153,
  124. octaves = 3,
  125. persist = 0.66
  126. },
  127. biomes = {"Conifer", "CT"},
  128. flags = "place_center_x, place_center_z",
  129. schematic = minetest.get_modpath("default").."/schematics/conifer_conifertree_1.mts",
  130. y_min = 0,
  131. y_max = 32000,
  132. })
  133. minetest.register_decoration({
  134. deco_type = "schematic",
  135. place_on = {"default:dirt_with_snow", "default:dirt_with_grass"},
  136. sidelen = 16,
  137. noise_params = {
  138. offset = 0.00,
  139. scale = 0.010,
  140. spread = {x = 250, y = 250, z = 250},
  141. seed = 154,
  142. octaves = 3,
  143. persist = 0.66
  144. },
  145. biomes = {"Conifer", "CT"},
  146. flags = "place_center_x, place_center_z",
  147. schematic = minetest.get_modpath("default").."/schematics/conifer_conifertree_2.mts",
  148. y_min = 0,
  149. y_max = 32000,
  150. })
  151. minetest.register_decoration({
  152. deco_type = "schematic",
  153. place_on = {"default:dirt_with_grass"},
  154. sidelen = 16,
  155. noise_params = {
  156. offset = 0.00,
  157. scale = 0.030,
  158. spread = {x = 250, y = 250, z = 250},
  159. seed = 538,
  160. octaves = 3,
  161. persist = 0.66
  162. },
  163. biomes = {"Tree", "CT", "TJ"},
  164. flags = "place_center_x, place_center_z",
  165. schematic = minetest.get_modpath("default").."/schematics/default_tree.mts",
  166. rotation = "random",
  167. y_min = 0,
  168. y_max = 32000,
  169. })
  170. minetest.register_decoration({
  171. deco_type = "schematic",
  172. place_on = {"default:dirt_with_grass"},
  173. sidelen = 16,
  174. noise_params = {
  175. offset = -0.05,
  176. scale = 0.020,
  177. spread = {x = 250, y = 250, z = 250},
  178. seed = 539,
  179. octaves = 3,
  180. persist = 0.66
  181. },
  182. biomes = {"Tree", "CT", "TJ"},
  183. flags = "place_center_x, place_center_z",
  184. schematic = minetest.get_modpath("default").."/schematics/default_apple_tree.mts",
  185. rotation = "random",
  186. y_min = 0,
  187. y_max = 32000,
  188. })
  189. minetest.register_decoration({
  190. deco_type = "schematic",
  191. place_on = "default:dirt_with_grass",
  192. sidelen = 16,
  193. noise_params = {
  194. offset = 0.00,
  195. scale = 0.030,
  196. spread = {x = 250, y = 250, z = 250},
  197. seed = 680,
  198. octaves = 3,
  199. persist = 0.66
  200. },
  201. biomes = {"Jungle", "TJ"},
  202. flags = "place_center_x, place_center_z",
  203. schematic = minetest.get_modpath("default").."/schematics/default_jungletree.mts",
  204. rotation = "random",
  205. y_min = 0,
  206. y_max = 32000,
  207. })
  208. minetest.register_decoration({
  209. deco_type = "simple",
  210. place_on = {"default:dirt_with_grass", "default:cactus"},
  211. sidelen = 16,
  212. fill_ratio = 0.15,
  213. biomes = {"Jungle", "TJ"},
  214. decoration = {"default:junglegrass"},
  215. y_min = 0,
  216. y_max = 32000,
  217. })