spawning_events.lua 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. local director = mob_spawning_director
  2. director.register_spawn_event (
  3. {
  4. description = "Unggoy group",
  5. name = "mob_unggoy:unggoy",
  6. intensity_min = 0.0,
  7. intensity_max = 0.6,
  8. group_min = 1,
  9. group_max = 4,
  10. probability = 0.4,
  11. day_start = 0,
  12. spawn_time = 5.0,
  13. spawn_location_type = "ground",
  14. })
  15. director.register_spawn_event(
  16. {
  17. description = "Unggoy horde",
  18. name = "mob_unggoy:unggoy",
  19. intensity_min = 0.0,
  20. intensity_max = 0.1,
  21. group_min = 21,
  22. group_max = 24,
  23. probability = 0.8,
  24. day_start = 1,
  25. spawn_time = 20.0,
  26. spawn_location_type = "ground",
  27. })
  28. director.register_spawn_event(
  29. {
  30. description = "Unggoy bombers",
  31. name = "mob_unggoy:unggoy",
  32. intensity_min = 0.0,
  33. intensity_max = 0.1,
  34. group_min = 5,
  35. group_max = 10,
  36. probability = 0.8,
  37. day_start = 1,
  38. spawn_time = 31.0,
  39. spawn_location_type = "ground",
  40. get_staticdata = function(pos, group_size)
  41. return minetest.serialize({spawn_with_bombs = true})
  42. end
  43. })
  44. director.register_spawn_event (
  45. {
  46. description = "Paniki group",
  47. name = "mob_paniki:paniki",
  48. intensity_min = 0.0,
  49. intensity_max = 0.3,
  50. group_min = 1,
  51. group_max = 6,
  52. probability = 0.6,
  53. day_start = 0,
  54. spawn_time = 30.0,
  55. spawn_location_type = "air",
  56. })
  57. director.register_spawn_event (
  58. {
  59. description = "Sarangay",
  60. name = "mob_sarangay:sarangay",
  61. intensity_min = 0.0,
  62. intensity_max = 0.2,
  63. group_min = 1,
  64. group_max = 1,
  65. probability = 0.4,
  66. day_start = 2,
  67. spawn_time = 90.0,
  68. spawn_location_type = "ground",
  69. })
  70. director.register_spawn_event (
  71. {
  72. description = "Botete",
  73. name = "mob_botete:botete",
  74. intensity_min = 0.0,
  75. intensity_max = 0.3,
  76. group_min = 1,
  77. group_max = 1,
  78. probability = 0.4,
  79. day_start = 1,
  80. spawn_time = 90.0,
  81. spawn_location_type = "air",
  82. })