pumpboom.lua 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. mobs:register_mob("nssm:pumpboom_small", {
  2. type = "monster",
  3. hp_max = 15,
  4. hp_min = 14,
  5. collisionbox = {-0.80, -0.3, -0.80, 0.80, 0.80, 0.80},
  6. visual = "mesh",
  7. mesh = "pumpboom.x",
  8. rotate = 270,
  9. textures = {
  10. {"pumpboom.png"}
  11. },
  12. visual_size = {x = 3, y = 3},
  13. explosion_radius = 4,
  14. makes_footstep_sound = true,
  15. view_range = 20,
  16. fear_height = 4,
  17. walk_velocity = 2,
  18. run_velocity = 2.5,
  19. sounds = {
  20. explode = "tnt_explode"
  21. },
  22. damage = 1.5,
  23. jump = true,
  24. drops = {
  25. {name = "nssm:life_energy", chance = 1, min = 1, max = 2},
  26. {name = "nssm:black_powder", chance = 2, min = 1, max = 2},
  27. },
  28. armor = 100,
  29. drawtype = "front",
  30. water_damage = 2,
  31. lava_damage = 5,
  32. fire_damage = 5,
  33. light_damage = 0,
  34. group_attack = true,
  35. attack_animals = true,
  36. knock_back = 2,
  37. blood_texture = "nssm_blood.png",
  38. stepheight = 1.1,
  39. attack_type = "explode",
  40. animation = {
  41. speed_normal = 25,
  42. speed_run = 25,
  43. stand_start = 1,
  44. stand_end = 30,
  45. walk_start = 81,
  46. walk_end = 97,
  47. run_start = 81,
  48. run_end = 97,
  49. punch_start = 70,
  50. punch_end = 80,
  51. }
  52. })
  53. mobs:register_mob("nssm:pumpboom_medium", {
  54. type = "monster",
  55. hp_max = 18,
  56. hp_min = 17,
  57. collisionbox = {-0.80, -0.3, -0.80, 0.80, 0.80, 0.80},
  58. visual = "mesh",
  59. mesh = "pumpboom.x",
  60. rotate = 270,
  61. textures = {
  62. {"pumpboom.png"}
  63. },
  64. visual_size = {x = 5, y = 5},
  65. makes_footstep_sound = true,
  66. view_range = 25,
  67. walk_velocity = 2,
  68. explosion_radius = 6,
  69. run_velocity = 2.5,
  70. sounds = {
  71. explode = "tnt_explode"
  72. },
  73. damage = 1.5,
  74. jump = true,
  75. drops = {
  76. {name = "nssm:life_energy", chance = 1, min = 2, max = 3},
  77. {name = "nssm:black_powder", chance = 2, min = 1, max = 3},
  78. },
  79. armor = 100,
  80. drawtype = "front",
  81. water_damage = 2,
  82. lava_damage = 5,
  83. fire_damage = 5,
  84. light_damage = 0,
  85. group_attack = true,
  86. attack_animals = true,
  87. knock_back = 2,
  88. blood_texture = "nssm_blood.png",
  89. stepheight = 1.1,
  90. attack_type = "explode",
  91. animation = {
  92. speed_normal = 25,
  93. speed_run = 25,
  94. stand_start = 1,
  95. stand_end = 30,
  96. walk_start = 81,
  97. walk_end = 97,
  98. run_start = 81,
  99. run_end = 97,
  100. punch_start = 70,
  101. punch_end = 80,
  102. }
  103. })
  104. mobs:register_mob("nssm:pumpboom_large", {
  105. type = "monster",
  106. hp_max = 20,
  107. hp_min = 19,
  108. collisionbox = {-0.80, -0.3, -0.80, 0.80, 0.80, 0.80},
  109. visual = "mesh",
  110. mesh = "pumpboom.x",
  111. rotate = 270,
  112. explosion_radius = 8,
  113. textures = {
  114. {"pumpboom.png"}
  115. },
  116. visual_size = {x = 8, y = 8},
  117. makes_footstep_sound = true,
  118. view_range = 30,
  119. walk_velocity = 2,
  120. run_velocity = 3,
  121. sounds = {
  122. explode = "tnt_explode"
  123. },
  124. damage = 1.5,
  125. jump = true,
  126. drops = {
  127. {name = "nssm:life_energy", chance = 1, min = 3, max = 4},
  128. {name = "nssm:black_powder", chance = 2, min = 2, max = 4},
  129. },
  130. armor = 100,
  131. drawtype = "front",
  132. water_damage = 2,
  133. lava_damage = 5,
  134. fire_damage = 5,
  135. light_damage = 0,
  136. group_attack = true,
  137. attack_animals = true,
  138. knock_back = 2,
  139. blood_texture = "nssm_blood.png",
  140. stepheight = 1.1,
  141. attack_type = "explode",
  142. animation = {
  143. speed_normal = 25,
  144. speed_run = 25,
  145. stand_start = 1,
  146. stand_end = 30,
  147. walk_start = 81,
  148. walk_end = 97,
  149. run_start = 81,
  150. run_end = 97,
  151. punch_start = 70,
  152. punch_end = 80,
  153. }
  154. })