crab.lua 1.2 KB

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