icelamander.lua 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. mobs:register_mob("nssm:icelamander", {
  2. type = "monster",
  3. hp_max = 230,
  4. hp_min = 230,
  5. collisionbox = {-0.5, 0, -0.5, 0.5, 2.3, 0.5},
  6. visual = "mesh",
  7. mesh = "icelamander.x",
  8. textures = {
  9. {"icelamander.png"}
  10. },
  11. visual_size = {x = 4, y = 4},
  12. makes_footstep_sound = true,
  13. view_range = 35,
  14. lifetimer = 500,
  15. fear_height = 4,
  16. walk_velocity = 2,
  17. run_velocity = 4,
  18. sounds = {
  19. random = "icelamander",
  20. },
  21. damage = 12,
  22. jump = true,
  23. drops = {
  24. {name = "nssm:life_energy", chance = 1, min = 6, max = 8},
  25. {name = "nssm:frosted_amphibian_heart", chance = 1, min = 1, max = 1},
  26. {name = "nssm:ice_tooth", chance = 1, min = 1, max = 1},
  27. {name = "nssm:little_ice_tooth", chance = 1, min = 0, max = 20},
  28. {name = "nssm:amphibian_ribs", chance = 2, min = 1, max = 1},
  29. },
  30. armor = 40,
  31. drawtype = "front",
  32. water_damage = 0,
  33. lava_damage = 30,
  34. fire_damage = 20,
  35. light_damage = 0,
  36. attack_type = "dogshoot",
  37. dogshoot_switch = true,
  38. blood_texture = "nssm_blood.png",
  39. blood_amount = 20,
  40. stepheight = 1.1,
  41. knock_back = 0,
  42. jump_height = 8,
  43. dogshoot_count_max = 7,
  44. arrow = "nssm:snow_arrow",
  45. shoot_interval = 2,
  46. animation = {
  47. speed_normal = 15,
  48. speed_run = 25,
  49. stand_start = 1,
  50. stand_end = 40,
  51. walk_start = 80,
  52. walk_end = 160,
  53. run_start = 40,
  54. run_end = 80,
  55. punch_start = 160,
  56. punch_end = 190,
  57. shoot_start = 190,
  58. shoot_end = 210,
  59. },
  60. do_custom = function(self)
  61. midas_ability(self, "default:ice", self.run_velocity, 1, 3)
  62. end,
  63. })