ant_soldier.lua 1.1 KB

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