spawn.lua 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. --Before starting a new game write 6 or 7 in order to regulate the spawns
  2. -- (7 works also with flat and fractal).
  3. local mymapgenis = nssm.mymapgenis
  4. local mm = nssm.multimobs
  5. if mymapgenis ~= 6 and mymapgenis ~= 7 then
  6. mymapgenis = 7
  7. end
  8. -- Spawning parameters
  9. if mm ~= 0 then
  10. if mymapgenis == 6 then
  11. -- ANTS
  12. mobs:spawn_specific("nssm:ant_queen",
  13. {"nssm:ant_dirt"}, {"air"}, 0, 20, 60, 200000/mm, 1, -31000, 31000)
  14. mobs:spawn_specific("nssm:ant_soldier",
  15. {"nssm:ant_dirt"}, {"air"}, 0, 20, 7, 30000/mm, 4, -31000, 31000)
  16. mobs:spawn_specific("nssm:ant_worker",
  17. {"nssm:ant_dirt"}, {"air"}, 0, 20, 5, 10000/mm, 5, -31000, 31000)
  18. -- SPIDERS
  19. mobs:spawn_specific("nssm:black_widow",
  20. {"default:dirt_with_rainforest_litter", "default:jungletree", "nssm:web" },
  21. {"air"}, 0, 20, 20, 1200000/mm, 2, -31000, 31000)
  22. mobs:spawn_specific("nssm:daddy_long_legs",
  23. {"default:dirt_with_rainforest_litter", "default:jungletree", "nssm:web" },
  24. {"air"}, 0, 20, 10, 1200000/mm, 2, -31000, 31000)
  25. mobs:spawn_specific("nssm:tarantula",
  26. {"default:dirt_with_rainforest_litter", "default:jungletree", "nssm:web" },
  27. {"air"}, 0, 14, 120, 5000000/mm, 1, -31000, 31000)
  28. mobs:spawn_specific("nssm:uloboros",
  29. {"default:dirt_with_rainforest_litter", "default:jungletree", "nssm:web" },
  30. {"air"}, 0, 20, 20, 1200000/mm, 1, -31000, 31000)
  31. -- DUCKS
  32. mobs:spawn_specific("nssm:duck", {"default:dirt_with_grass"},
  33. {"group:flora"}, 10, 20, 20, 350000/mm, 1, -31000, 20)
  34. mobs:spawn_specific("nssm:duckking", {"default:dirt_with_grass"},
  35. {"group:flora"}, 10, 20, 300, 5000000/mm, 1, -31000, 20)
  36. mobs:spawn_specific("nssm:enderduck", {"default:dirt_with_grass"},
  37. {"group:flora"}, 0, 10, 45, 900000/mm, 1, -31000, 20)
  38. mobs:spawn_specific("nssm:flying_duck", {"air"},
  39. {"group:leaves"}, 10, 20, 120, 24000000/mm, 1, 1, 25)
  40. mobs:spawn_specific("nssm:flying_duck", {"air"},
  41. {"group:flora"}, 10, 20, 120, 6000000/mm, 1, 1, 25)
  42. mobs:spawn_specific("nssm:spiderduck", {"default:dirt_with_grass"},
  43. {"group:flora"}, 0, 10, 45, 850000/mm, 1, -31000, 20)
  44. mobs:spawn_specific("nssm:swimming_duck", {"default:water_source"},
  45. {"default:water_source"}, 0, 20, 60, 45000000/mm, 1, -31000, 20)
  46. -- MOUNTAINS
  47. mobs:spawn_specific("nssm:echidna", {"default:dirt_with_grass"},
  48. {"default:dirt_with_grass"}, 0, 20, 200, 100000000/mm, 1, 22, 31000)
  49. mobs:spawn_specific("nssm:manticore", {"default:dirt_with_grass"},
  50. {"default:dirt_with_grass"}, 10, 20, 60, 12000000/mm, 1, 20, 31000)
  51. mobs:spawn_specific("nssm:werewolf", {"default:dirt_with_grass"},
  52. {"default:dirt_with_grass"}, 0, 10, 60, 12000000/mm, 1, 20, 31000)
  53. -- ICE
  54. mobs:spawn_specific("nssm:icelamander",
  55. {"default:snowblock", "default:ice"}, {"default:snowblock", "default:ice"},
  56. 0, 20, 120, 25000000/mm, 1, -31000, 31000)
  57. mobs:spawn_specific("nssm:icesnake",
  58. {"default:snowblock", "default:ice", "default:dirt_with_snow"},
  59. {"default:snowblock", "default:ice", "default:dirt_with_snow"},
  60. 0, 20, 30, 6000000/mm, 1, -31000, 31000)
  61. mobs:spawn_specific("nssm:white_werewolf",
  62. {"default:dirt_with_snow","default:snowblock"},
  63. {"air"}, 0, 20, 60, 9000000/mm, 1, 20, 31000)
  64. mobs:spawn_specific("nssm:snow_biter",
  65. {"default:snowblock", "default:ice", "default:dirt_with_snow"},
  66. {"default:snowblock", "default:ice", "default:dirt_with_snow"},
  67. 0, 20, 30, 6000000/mm, 1, -31000, 31000)
  68. -- FOREST
  69. mobs:spawn_specific("nssm:larva", {"default:dirt_with_grass"},
  70. {"default:tree","default:aspen_tree"}, 0, 20, 40, 200000/mm, 1, -31000, 140)
  71. mobs:spawn_specific("nssm:masticone", {"default:dirt_with_grass"},
  72. {"default:tree","default:aspen_tree"}, 0, 20, 120, 5000000/mm, 2, -31000, 140)
  73. -- PINE FOREST
  74. mobs:spawn_specific("nssm:pumpboom_small",
  75. {"default:dirt_with_coniferous_litter", "default:dirt_with_snow",
  76. "default:snowblock"}, {"default:pine_tree"},
  77. 0, 20, 30, 600000/mm, 1, -31000, 31000)
  78. mobs:spawn_specific("nssm:pumpboom_medium",
  79. {"default:dirt_with_coniferous_litter", "default:dirt_with_snow",
  80. "default:snowblock"}, {"default:pine_tree"},
  81. 0, 20, 30, 800000/mm, 1, -31000, 31000)
  82. mobs:spawn_specific("nssm:pumpboom_large",
  83. {"default:dirt_with_coniferous_litter", "default:dirt_with_snow",
  84. "default:snowblock"}, {"default:pine_tree"},
  85. 0, 20, 30, 1000000/mm, 1, -31000, 31000)
  86. mobs:spawn_specific("nssm:pumpking",
  87. {"default:dirt_with_coniferous_litter", "default:dirt_with_snow",
  88. "default:snowblock"}, {"default:pine_needles", "default:pine_tree"},
  89. 0, 12, 120, 8000000/mm, 1, -31000, 31000)
  90. else
  91. -- SPIDERS
  92. mobs:spawn_specific("nssm:black_widow",
  93. {"default:dirt_with_rainforest_litter", "default:jungletree", "nssm:web" },
  94. {"air"}, 0, 20, 30, 4400000/mm, 2, -31000, 31000)
  95. mobs:spawn_specific("nssm:daddy_long_legs",
  96. {"default:dirt_with_rainforest_litter", "default:jungletree", "nssm:web" },
  97. {"air"}, 0, 30, 10, 4400000/mm, 2, -31000, 31000)
  98. mobs:spawn_specific("nssm:tarantula",
  99. {"default:dirt_with_rainforest_litter", "default:jungletree", "nssm:web" },
  100. {"air"}, 0, 14, 120, 50000000/mm, 1, -31000, 31000)
  101. mobs:spawn_specific("nssm:uloboros",
  102. {"default:dirt_with_rainforest_litter", "default:jungletree", "nssm:web" },
  103. {"air"}, 0, 20, 30, 4400000/mm, 1, -31000, 31000)
  104. -- DUCKS
  105. mobs:spawn_specific("nssm:duck", {"default:dirt_with_grass"},
  106. {"group:flora"}, 10, 20, 50, 1500000/mm, 1, -31000, 40)
  107. mobs:spawn_specific("nssm:duckking", {"default:dirt_with_grass"},
  108. {"group:flora"}, 10, 20, 400, 120000000/mm, 1, -31000, 40)
  109. mobs:spawn_specific("nssm:enderduck", {"default:dirt_with_grass"},
  110. {"group:flora"}, 0, 10, 120, 5000000/mm, 1, -31000, 40)
  111. mobs:spawn_specific("nssm:flying_duck", {"air"},
  112. {"group:leaves"}, 10, 20, 120, 8000000/mm, 1, 1, 40)
  113. mobs:spawn_specific("nssm:flying_duck", {"air"},
  114. {"group:flora"}, 10, 20, 120, 25000000/mm, 1, 1, 40)
  115. mobs:spawn_specific("nssm:spiderduck", {"default:dirt_with_grass"},
  116. {"group:flora"}, 0, 10, 120, 5000000/mm, 1, -31000, 45)
  117. mobs:spawn_specific("nssm:swimming_duck", {"default:water_source"},
  118. {"default:water_source"}, 0, 20, 60, 45000000/mm, 1, -31000, 40)
  119. mobs:spawn_specific("nssm:swimming_duck", {"default:river_water_source"},
  120. {"default:sand","default:river_water_source"},
  121. 0, 20, 60, 3000000/mm, 1, -31000, 300)
  122. -- MOUNTAINS
  123. mobs:spawn_specific("nssm:echidna", {"default:dirt_with_grass"},
  124. {"default:dirt_with_grass"}, 0, 20, 200, 100000000/mm, 1, 50, 31000)
  125. mobs:spawn_specific("nssm:manticore", {"default:dirt_with_grass"},
  126. {"default:dirt_with_grass"}, 10, 20, 60, 13000000/mm, 1, 40, 31000)
  127. mobs:spawn_specific("nssm:werewolf", {"default:dirt_with_grass"},
  128. {"default:dirt_with_grass"}, 0, 10, 60, 13000000/mm, 1, 40, 31000)
  129. -- ICE
  130. mobs:spawn_specific("nssm:icelamander",
  131. {"default:snowblock", "default:ice"}, {"default:snowblock", "default:ice"},
  132. 0, 20, 180, 120000000/mm, 1, -31000, 31000)
  133. mobs:spawn_specific("nssm:icesnake",
  134. {"default:snowblock", "default:ice", "default:dirt_with_snow"},
  135. {"default:snowblock", "default:ice", "default:dirt_with_snow"},
  136. 0, 20, 40, 20000000/mm, 1, -31000, 31000)
  137. mobs:spawn_specific("nssm:white_werewolf",
  138. {"default:dirt_with_snow","default:snowblock"},
  139. {"air"}, 0, 20, 35, 22000000/mm, 1, 50, 31000)
  140. mobs:spawn_specific("nssm:snow_biter",
  141. {"default:snowblock", "default:ice", "default:dirt_with_snow"},
  142. {"default:snowblock", "default:ice", "default:dirt_with_snow"},
  143. 0, 20, 40, 20000000/mm, 1, -31000, 31000)
  144. -- FOREST
  145. mobs:spawn_specific("nssm:larva", {"default:dirt_with_grass"},
  146. {"default:tree","default:aspen_tree"}, 0, 20, 40, 800000/mm, 1, -31000, 140)
  147. mobs:spawn_specific("nssm:masticone", {"default:dirt_with_grass"},
  148. {"default:tree","default:aspen_tree"}, 0, 20, 180, 6000000/mm, 2, -31000, 140)
  149. -- PINE FOREST
  150. mobs:spawn_specific("nssm:pumpboom_small",
  151. {"default:dirt_with_coniferous_litter", "default:dirt_with_snow",
  152. "default:snowblock"}, {"default:pine_tree"},
  153. 0, 20, 80, 1400000/mm, 1, -31000, 31000)
  154. mobs:spawn_specific("nssm:pumpboom_medium",
  155. {"default:dirt_with_coniferous_litter", "default:dirt_with_snow",
  156. "default:snowblock"}, {"default:pine_tree"},
  157. 0, 20, 80, 1600000/mm, 1, -31000, 31000)
  158. mobs:spawn_specific("nssm:pumpboom_large",
  159. {"default:dirt_with_coniferous_litter", "default:dirt_with_snow",
  160. "default:snowblock"}, {"default:pine_tree"},
  161. 0, 20, 80, 1800000/mm, 1, -31000, 31000)
  162. mobs:spawn_specific("nssm:pumpking",
  163. {"default:dirt_with_coniferous_litter", "default:dirt_with_snow",
  164. "default:snowblock"}, {"default:pine_needles", "default:pine_tree"},
  165. 0, 12, 120, 8000000/mm, 1, -31000, 31000)
  166. -- SAVANNA
  167. mobs:spawn_specific("nssm:felucco", {"default:dirt_with_dry_grass",
  168. "default:dry_dirt_with_dry_grass"}, {"default:dirt_with_dry_grass"},
  169. 0, 20, 80, 20000000/mm, 1, -200, 31000)
  170. end
  171. -- NSSB SPECIAL
  172. if minetest.get_modpath("nssb") then
  173. mobs:spawn_specific("nssm:xgaloctopus", {"default:water_source"},
  174. {"nssb:marine_brick"}, 0, 20, 20, 800000/mm, 1, -31000, 0)
  175. end
  176. -- CAVES
  177. mobs:spawn_specific("nssm:bloco", {"default:stone", "default:desert_stone"},
  178. {"default:stone", "default:desert_stone"}, 0, 20, 30, 500000/mm, 3, -31000, -20)
  179. mobs:spawn_specific("nssm:lava_titan", {"default:stone", "default:desert_stone"},
  180. {"air"}, 0, 120, 12, 22000000/mm, 1, -31000, -100)
  181. mobs:spawn_specific("nssm:stone_eater", {"default:stone", "default:desert_stone"},
  182. {"default:stone", "default:desert_stone"}, 0, 20, 40, 700000/mm, 2, -31000, -20)
  183. mobs:spawn_specific("nssm:signosigno", {"default:stone", "default:desert_stone"},
  184. {"default:stone", "default:desert_stone"}, 0, 10, 20, 400000/mm, 2, -31000, -20)
  185. mobs:spawn_specific("nssm:signosigno", {"bones:bones"},
  186. {"air"}, 0, 15, 20, 5000/mm, 5, -31000, 31000)
  187. -- SEA
  188. mobs:spawn_specific("nssm:crab", {"default:sand"},
  189. {"default:water_source"}, 0, 20, 60, 4000000/mm, 1, -31000, 31000)
  190. mobs:spawn_specific("nssm:crocodile", {"default:sand","default:water_source"},
  191. {"default:water_source"}, 0, 20, 100, 35000000/mm, 1, -31000, 31000)
  192. mobs:spawn_specific("nssm:crocodile", {"default:sand","default:river_water_source"},
  193. {"default:river_water_source"}, 0, 20, 60, 12000000/mm, 1, -31000, 31000)
  194. mobs:spawn_specific("nssm:dolidrosaurus", {"default:water_source"},
  195. {"default:water_source"}, 0, 20, 100, 35000000/mm, 1, -31000, -1)
  196. mobs:spawn_specific("nssm:kraken", {"default:water_source"},
  197. {"default:water_source"}, 0, 20, 400, 500000000/mm, 1, -31000, 0)
  198. mobs:spawn_specific("nssm:octopus", {"default:water_source"},
  199. {"default:water_source"}, 0, 20, 80, 38000000/mm, 1, -31000, 0)
  200. -- DESERT
  201. mobs:spawn_specific("nssm:sandworm", {"default:desert_sand", "default:desert_stone"},
  202. {"air"}, 0, 20, 100, 28000000/mm, 1, -31000, 31000)
  203. mobs:spawn_specific("nssm:giant_sandworm", {"default:desert_sand",
  204. "default:desert_stone"}, {"air"}, 0, 20, 400, 600000000/mm, 1, -31000, 31000)
  205. mobs:spawn_specific("nssm:sand_bloco", {"default:desert_sand",
  206. "default:desert_stone"}, {"air"}, 0, 20, 90, 20000000/mm, 1, -31000, 31000)
  207. -- SKY
  208. mobs:spawn_specific("nssm:moonheron", {"air"}, {"air"},
  209. 0, 10, 110, 950000000/mm, 1, 10, 180)
  210. mobs:spawn_specific("nssm:night_master", {"air"}, {"air"},
  211. 0, 7, 400, 4500000000/mm, 2, 10, 180)
  212. mobs:spawn_specific("nssm:phoenix", {"air"}, {"air"},
  213. 10, 20, 400, 10000000000/mm, 1, 10, 180)
  214. mobs:spawn_specific("nssm:scrausics", {"air"}, {"air"},
  215. 10, 20, 110, 950000000/mm, 1, 10, 180)
  216. end