icesnake.lua 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. mobs:register_mob("nssm:icesnake", {
  2. type = "monster",
  3. hp_max = 27,
  4. hp_min = 17,
  5. collisionbox = {-0.7, 0, -0.7, 0.7, 0.50, 0.7},
  6. visual = "mesh",
  7. mesh = "icesnake.x",
  8. textures = {
  9. {"icesnake.png"}
  10. },
  11. visual_size = {x = 7, y = 7},
  12. makes_footstep_sound = false,
  13. view_range = 10,
  14. rotate = 270,
  15. fear_height = 3,
  16. walk_velocity = 1.2,
  17. run_velocity = 3,
  18. sounds = {
  19. random = "icesnake",
  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:frosted_amphibian_heart", chance = 2, min = 1, max = 1},
  27. {name = "nssm:little_ice_tooth", chance = 2, min = 0, max = 4},
  28. {name = "nssm:amphibian_ribs", chance = 2, min = 1, max = 3},
  29. },
  30. armor = 70,
  31. drawtype = "front",
  32. water_damage = 0,
  33. lava_damage = 20,
  34. fire_damage = 15,
  35. light_damage = 0,
  36. group_attack = true,
  37. attack_animals = true,
  38. knock_back = 2,
  39. blood_texture = "nssm_blood.png",
  40. stepheight = 1.1,
  41. attack_type = "dogfight",
  42. animation = {
  43. speed_normal = 15,
  44. speed_run = 25,
  45. stand_start = 170,
  46. stand_end = 220,
  47. walk_start = 1,
  48. walk_end = 60,
  49. run_start = 80,
  50. run_end = 120,
  51. punch_start = 130,
  52. punch_end = 160,
  53. },
  54. do_custom = function(self)
  55. putting_ability(self, "default:ice", self.run_velocity)
  56. end,
  57. })