enderduck.lua 1.2 KB

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