ant_worker.lua 1.1 KB

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