crocodile.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. mobs:register_mob("nssm:crocodile", {
  2. type = "monster",
  3. hp_max = 30,
  4. hp_min = 15,
  5. collisionbox = {-0.45, -0.30, -0.45, 0.45, 0.3, 0.45},
  6. visual = "mesh",
  7. mesh = "crocodile.x",
  8. textures = {
  9. {"croco.png"}
  10. },
  11. sounds = {
  12. random = "crocod",
  13. },
  14. visual_size = {x = 4, y = 4},
  15. makes_footstep_sound = true,
  16. view_range = 15,
  17. walk_velocity = 1,
  18. run_velocity = 1,
  19. damage = 5,
  20. floats = 1,
  21. jump = true,
  22. drops = {
  23. {name = "nssm:life_energy", chance = 1, min = 1, max = 2},
  24. {name = "nssm:crocodile_tail", chance = 2, min = 1, max = 1},
  25. {name = "nssm:crocodile_skin", chance = 3, min = 1, max = 1},
  26. },
  27. armor = 60,
  28. drawtype = "front",
  29. reach = 2,
  30. water_damage = 0,
  31. lava_damage = 10,
  32. fire_damage = 10,
  33. light_damage = 0,
  34. group_attack = true,
  35. attack_animals = true,
  36. knock_back = 3,
  37. blood_texture = "nssm_blood.png",
  38. stepheight = 1.1,
  39. attack_type = "dogfight",
  40. animation = {
  41. speed_normal = 25,
  42. speed_run = 25,
  43. stand_start = 1,
  44. stand_end = 80,
  45. walk_start = 230,
  46. walk_end = 270,
  47. run_start = 230,
  48. run_end = 270,
  49. punch_start = 205,
  50. punch_end = 220,
  51. --swim_start = 100,
  52. --swim_end = 140,
  53. }
  54. })