stone_eater.lua 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. mobs:register_mob("nssm:stone_eater", {
  2. type = "monster",
  3. hp_max = 27,
  4. hp_min = 19,
  5. collisionbox = {-0.3, -0.05, -0.3, 0.3, 0.65, 0.3},
  6. visual = "mesh",
  7. mesh = "stone_eater.x",
  8. textures = {
  9. {"stone_eater.png"}
  10. },
  11. visual_size = {x = 10, y = 10},
  12. makes_footstep_sound = false,
  13. view_range = 16,
  14. rotate = 270,
  15. fear_height = 4,
  16. jump = false,
  17. jump_height =0,
  18. walk_velocity = 1,
  19. run_velocity = 1.5,
  20. damage = 5,
  21. reach = 1.5,
  22. drops = {
  23. {name = "default:stone", chance = 2, min = 1, max = 3},
  24. {name = "nssm:life_energy", chance = 1, min = 2, max = 3},
  25. {name = "nssm:stoneater_mandible", chance = 2, min = 1, max = 4},
  26. },
  27. armor = 40,
  28. drawtype = "front",
  29. water_damage = 1,
  30. lava_damage = 1,
  31. fire_damage = 1,
  32. group_attack = true,
  33. attack_animals = true,
  34. knock_back = 0,
  35. blood_texture = "stone_blood.png",
  36. immune_to={
  37. {'default:sword_stone', -2},
  38. {'default:stone', -2},
  39. {'default:cobble', -2},
  40. {'default:axe_stone', -2},
  41. {'default:shovel_stone', -2},
  42. {'default:pick_stone', -2}
  43. },
  44. light_damage = 0,
  45. attack_type = "dogfight",
  46. animation = {
  47. speed_normal = 20,
  48. speed_run = 20,
  49. stand_start = 1,
  50. stand_end = 60,
  51. walk_start = 70,
  52. walk_end = 110,
  53. run_start = 130,
  54. run_end = 150,
  55. punch_start = 160,
  56. punch_end = 185,
  57. },
  58. do_custom = function(self)
  59. --digging_ability(self, "stone", self.run_velocity, {x=0, y=2, z=0})
  60. digging_attack(self, "stone", self.run_velocity, {x = 0, y = 1, z = 0})
  61. end,
  62. })