swimming_duck.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. mobs:register_mob("nssm:swimming_duck", {
  2. type = "monster",
  3. hp_max = 25,
  4. hp_min = 15,
  5. collisionbox = {-0.35, -0.30, -0.35, 0.35, 0.7, 0.35},
  6. visual = "mesh",
  7. mesh = "swimming_duck.x",
  8. textures = {
  9. {"swimming_duck.png"}
  10. },
  11. visual_size = {x = 1.5, y = 1.5},
  12. view_range = 25,
  13. floats = 1,
  14. walk_velocity = 1,
  15. run_velocity = 1,
  16. damage = 3,
  17. reach = 1.5,
  18. jump = false,
  19. jump_chance = 0,
  20. jump_height = 0,
  21. sounds = {
  22. random = "duck",
  23. },
  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:duck_beak", chance = 5, min = 1, max = 1},
  28. {name = "nssm:duck_feather", chance = 6, min = 1, max = 2},
  29. },
  30. armor = 80,
  31. drawtype = "front",
  32. water_damage = 0,
  33. lava_damage = 10,
  34. fire_damage = 10,
  35. light_damage = 0,
  36. group_attack = true,
  37. attack_animals = true,
  38. knock_back = 4,
  39. blood_texture = "nssm_blood.png",
  40. attack_type = "dogfight",
  41. animation = {
  42. speed_normal = 25,
  43. speed_run = 35,
  44. stand_start = 1,
  45. stand_end = 60,
  46. walk_start = 80,
  47. walk_end = 120,
  48. run_start = 80,
  49. run_end = 120,
  50. punch_start = 140,
  51. punch_end = 160,
  52. }
  53. })