mantis.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. mobs:register_mob("nssm:mantis", {
  2. type = "monster",
  3. hp_max = 31,
  4. hp_min = 24,
  5. collisionbox = {-0.5, 0.00, -0.5, 0.5, 2.30, 0.5},
  6. visual = "mesh",
  7. mesh = "mantis.x",
  8. textures = {
  9. {"mantis.png"},
  10. {"mantis2.png"}
  11. },
  12. visual_size = {x = 4, y = 4},
  13. makes_footstep_sound = true,
  14. view_range = 20,
  15. fear_height = 4,
  16. walk_velocity = 2,
  17. run_velocity = 2.5,
  18. sounds = {
  19. random = "manti",
  20. },
  21. damage = 4,
  22. jump = true,
  23. drops = {
  24. {name = "nssm:mantis_claw", chance = 2, min = 1, max = 4},
  25. {name = "nssm:life_energy", chance = 1, min = 1, max = 2},
  26. {name = "nssm:mantis_skin", chance = 3, min = 1, max = 2},
  27. {name = "nssm:mantis_meat", chance = 2, min = 1, max = 2},
  28. },
  29. armor = 70,
  30. drawtype = "front",
  31. water_damage = 2,
  32. lava_damage = 5,
  33. fire_damage = 5,
  34. light_damage = 0,
  35. group_attack = true,
  36. attack_animals = true,
  37. knock_back = 2,
  38. blood_texture = "nssm_blood_blue.png",
  39. stepheight = 1.1,
  40. double_melee_attack = true,
  41. attack_type = "dogfight",
  42. animation = {
  43. speed_normal = 25,
  44. speed_run = 25,
  45. stand_start = 1,
  46. stand_end = 20,
  47. walk_start = 20,
  48. walk_end = 60,
  49. run_start = 60,
  50. run_end = 80,
  51. punch_start = 120,
  52. punch_end = 140,
  53. punch2_start = 145,
  54. punch2_end = 165,
  55. }
  56. })