flying_duck.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. mobs:register_mob("nssm:flying_duck", {
  2. type = "monster",
  3. hp_max = 20,
  4. hp_min = 10,
  5. collisionbox = {-0.3, -0.2, -0.3, 0.3, 0.2, 0.3},
  6. visual = "mesh",
  7. mesh = "nathan_petrelli.x",
  8. textures = {
  9. {"nathan_petrelli.png"}
  10. },
  11. visual_size = {x = 1, y = 1},
  12. view_range = 30,
  13. walk_velocity = 2,
  14. run_velocity = 2.5,
  15. fall_speed = 0,
  16. stepheight = 3,
  17. sounds = {
  18. random = "duck",
  19. },
  20. damage = 3,
  21. reach = 2,
  22. jump = true,
  23. drops = {
  24. {name = "nssm:life_energy", chance = 1, min = 1, max = 2},
  25. {name = "nssm:duck_legs", chance = 2, min = 1, max = 2},
  26. {name = "nssm:duck_beak", chance = 5, min = 1, max = 1},
  27. {name = "nssm:duck_feather", chance = 2, min = 4, max = 8},
  28. },
  29. armor = 80,
  30. drawtype = "front",
  31. water_damage = 0,
  32. lava_damage = 5,
  33. fire_damage = 5,
  34. light_damage = 0,
  35. group_attack = true,
  36. attack_animals = true,
  37. knock_back = 5,
  38. blood_texture = "nssm_blood.png",
  39. fly = true,
  40. attack_type = "dogfight",
  41. animation = {
  42. speed_normal = 25,
  43. speed_run = 25,
  44. stand_start = 0,
  45. stand_end = 80,
  46. walk_start = 160,
  47. walk_end = 200,
  48. run_start = 160,
  49. run_end = 220,
  50. punch_start = 110,
  51. punch_end = 140,
  52. }
  53. })