black_widow.lua 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. mobs:register_mob("nssm:black_widow", {
  2. type = "monster",
  3. hp_max = 26,
  4. hp_min = 19,
  5. collisionbox = {-0.4, 0.00, -0.4, 0.4, 0.8, 0.4},
  6. visual = "mesh",
  7. mesh = "black_widow.x",
  8. textures = {
  9. {"black_widow.png"}
  10. },
  11. visual_size = {x = 2, y = 2},
  12. makes_footstep_sound = true,
  13. view_range = 15,
  14. fear_height = 4,
  15. walk_velocity = 0.8,
  16. run_velocity = 2.5,
  17. rotate = 270,
  18. sounds = {
  19. random = "black_widow",
  20. },
  21. damage = 4,
  22. reach = 2,
  23. jump = true,
  24. drops = {
  25. {name = "nssm:life_energy", chance = 1, min = 1, max = 2},
  26. {name = "nssm:spider_leg", chance = 3, min = 1, max = 8},
  27. {name = "nssm:silk_gland", chance = 4, min = 1, max = 3},
  28. {name = "nssm:spider_meat", chance = 4, min = 1, max = 2},
  29. },
  30. armor = 70,
  31. drawtype = "front",
  32. water_damage = 1,
  33. lava_damage = 7,
  34. fire_damage = 7,
  35. group_attack = true,
  36. attack_animals = true,
  37. knock_back = 2,
  38. blood_texture = "nssm_blood_blue.png",
  39. stepheight = 1.1,
  40. light_damage = 0,
  41. attack_type = "dogfight",
  42. animation = {
  43. speed_normal = 20,
  44. speed_run = 25,
  45. stand_start = 1,
  46. stand_end = 70,
  47. walk_start = 80,
  48. walk_end = 120,
  49. run_start = 120,
  50. run_end = 140,
  51. punch_start = 150,
  52. punch_end = 160,
  53. },
  54. do_custom = function(self)
  55. webber_ability(self, "nssm:web", 2)
  56. end,
  57. })