snow_biter.lua 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. mobs:register_mob("nssm:snow_biter", {
  2. type = "monster",
  3. hp_max = 30,
  4. hp_min = 15,
  5. collisionbox = {-0.5, 0, -0.5, 0.5, 0.60, 0.5},
  6. visual = "mesh",
  7. mesh = "snow_biter.x",
  8. textures = {
  9. {"snow_biter.png"}
  10. },
  11. visual_size = {x = 6, y = 6},
  12. makes_footstep_sound = true,
  13. view_range = 18,
  14. rotate = 270,
  15. mele_number = 2,
  16. fear_height = 4,
  17. reach = 1.5,
  18. walk_velocity = 0.8,
  19. run_velocity = 3,
  20. sounds = {
  21. random = "snow_biter",
  22. },
  23. damage = 4,
  24. jump = true,
  25. drops = {
  26. {name = "nssm:life_energy", chance = 1, min = 2, max = 3},
  27. {name = "nssm:frosted_amphibian_heart", chance = 2, min = 1, max = 1},
  28. {name = "nssm:amphibian_ribs", chance = 2, min = 1, max = 1},
  29. {name = "nssm:little_ice_tooth", chance = 2, min = 0, max = 4},
  30. },
  31. armor = 80,
  32. drawtype = "front",
  33. water_damage = 0,
  34. lava_damage = 30,
  35. fire_damage = 20,
  36. light_damage = 0,
  37. group_attack = true,
  38. attack_animals = true,
  39. knock_back = 4,
  40. blood_texture = "nssm_blood.png",
  41. stepheight = 1.1,
  42. attack_type = "dogfight",
  43. double_melee_attack = true,
  44. animation = {
  45. speed_normal = 20,
  46. speed_run = 25,
  47. stand_start = 0,
  48. stand_end = 80,
  49. walk_start = 110,
  50. walk_end = 150,
  51. run_start = 80,
  52. run_end = 100,
  53. punch_start = 175,
  54. punch_end = 190,
  55. punch2_start = 200,
  56. punch2_end = 215
  57. },
  58. do_custom = function(self)
  59. putting_ability(self, "default:ice", self.run_velocity)
  60. end,
  61. })