tarantula.lua 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. mobs:register_mob("nssm:tarantula", {
  2. type = "monster",
  3. hp_max = 50,
  4. hp_min = 50,
  5. collisionbox = {-0.5, 0.00, -0.5, 0.5, 0.9, 0.5},
  6. visual = "mesh",
  7. mesh = "tarantula.x",
  8. textures = {
  9. {"tarantula.png"}
  10. },
  11. visual_size = {x = 8, y = 8},
  12. makes_footstep_sound = true,
  13. view_range = 20,
  14. lifetimer = 500,
  15. walk_velocity = 0.7,
  16. fear_height = 4,
  17. run_velocity = 3,
  18. rotate = 270,
  19. sounds = {
  20. random = "tarry",
  21. },
  22. damage = 8,
  23. jump = true,
  24. drops = {
  25. {name = "nssm:super_silk_gland", chance = 1, min = 3, max = 5},
  26. },
  27. armor = 60,
  28. drawtype = "front",
  29. water_damage = 1,
  30. lava_damage = 7,
  31. fire_damage = 7,
  32. reach = 3,
  33. knock_back = 0,
  34. blood_texture = "nssm_blood_blue.png",
  35. stepheight = 1.1,
  36. light_damage = 0,
  37. dogshoot_switch = true,
  38. attack_type = "dogshoot",
  39. arrow = "nssm:thickwebball",
  40. shoot_interval = 2,
  41. shoot_offset = 1,
  42. animation = {
  43. speed_normal = 20,
  44. speed_run = 25,
  45. stand_start = 1,
  46. stand_end = 60,
  47. walk_start = 100,
  48. walk_end = 140,
  49. run_start = 140,
  50. run_end = 160,
  51. punch_start = 180,
  52. punch_end = 200,
  53. shoot_start = 180,
  54. shoot_end = 200,
  55. },
  56. on_die = function(self, pos)
  57. self.object:remove()
  58. minetest.add_particlespawner({
  59. amount = 200,
  60. time = 0.1,
  61. minpos = {x=pos.x-1, y=pos.y-1, z=pos.z-1},
  62. maxpos = {x=pos.x+1, y=pos.y+1, z=pos.z+1},
  63. minvel = {x=-0, y=-0, z=-0},
  64. maxvel = {x=1, y=1, z=1},
  65. minacc = {x=-0.5,y=5,z=-0.5},
  66. maxacc = {x=0.5,y=5,z=0.5},
  67. minexptime = 0.1,
  68. maxexptime = 1,
  69. minsize = 3,
  70. maxsize = 4,
  71. collisiondetection = false,
  72. texture = "tnt_smoke.png"
  73. })
  74. minetest.add_entity(pos, "nssm:tarantula_propower")
  75. end,
  76. })
  77. mobs:register_mob("nssm:tarantula_propower", {
  78. type = "monster",
  79. hp_max = 90,
  80. hp_min = 90,
  81. collisionbox = {-0.5, 0.00, -0.5, 0.5, 1, 0.5},
  82. visual = "mesh",
  83. mesh = "tarantula_propower.x",
  84. textures = {
  85. {"tarantula.png"}
  86. },
  87. visual_size = {x = 10, y = 10},
  88. makes_footstep_sound = true,
  89. view_range = 30,
  90. lifetimer = 500,
  91. walk_velocity = 1.5,
  92. run_velocity = 3.3,
  93. rotate = 270,
  94. sounds = {
  95. random = "tarry",
  96. },
  97. damage = 12,
  98. jump = true,
  99. drops = {
  100. {name = "nssm:life_energy", chance = 1, min = 16, max = 18},
  101. {name = "nssm:spider_leg", chance = 1, min = 1, max = 8},
  102. {name = "nssm:tarantula_chelicerae", chance = 1, min = 1, max = 1},
  103. {name = "nssm:silk_gland", chance = 2, min = 1, max = 3},
  104. {name = "nssm:spider_meat", chance = 2, min = 1, max = 2},
  105. },
  106. armor = 40,
  107. drawtype = "front",
  108. water_damage = 1,
  109. lava_damage = 3,
  110. fire_damage = 3,
  111. reach = 4,
  112. knock_back = 0,
  113. blood_texture = "nssm_blood_blue.png",
  114. stepheight = 2.1,
  115. light_damage = 0,
  116. attack_type = "dogfight",
  117. animation = {
  118. speed_normal = 20,
  119. speed_run = 25,
  120. stand_start = 1,
  121. stand_end = 60,
  122. walk_start = 100,
  123. walk_end = 140,
  124. run_start = 140,
  125. run_end = 160,
  126. punch_start = 180,
  127. punch_end = 200,
  128. }
  129. })