spiderduck.lua 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. mobs:register_mob("nssm:spiderduck", {
  2. type = "monster",
  3. hp_max = 35,
  4. hp_min = 24,
  5. collisionbox = {-0.6, -0.8, -0.6, 0.6, 0.4, 0.5},
  6. visual = "mesh",
  7. rotate = 270,
  8. mesh = "spiderduck.x",
  9. textures = {
  10. {"spiderduck.png"}
  11. },
  12. visual_size = {x = 2, y = 2},
  13. fear_height = 4,
  14. makes_footstep_sound = true,
  15. view_range = 24,
  16. walk_velocity = 2,
  17. run_velocity = 4,
  18. sounds = {
  19. random = "duck",
  20. },
  21. damage = 6,
  22. jump = true,
  23. drops = {
  24. {name = "nssm:life_energy", chance = 1, min = 1, max = 2},
  25. {name = "nssm:duck_legs", chance = 1, min = 1, max = 8},
  26. {name = "nssm:silk_gland", chance = 2, 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 = 2,
  33. lava_damage = 5,
  34. fire_damage = 5,
  35. light_damage = 0,
  36. group_attack = true,
  37. attack_animals = true,
  38. knock_back = 2,
  39. blood_texture = "nssm_blood.png",
  40. stepheight = 1.5,
  41. dogshoot_switch = true,
  42. attack_type = "dogshoot",
  43. arrow = "nssm:webball",
  44. reach = 2,
  45. shoot_interval = 2,
  46. shoot_offset = 2,
  47. animation = {
  48. speed_normal = 25,
  49. speed_run = 35,
  50. stand_start = 60,
  51. stand_end = 140,
  52. walk_start = 220,
  53. walk_end = 260,
  54. run_start = 220,
  55. run_end = 260,
  56. punch_start = 20,
  57. punch_end = 46,
  58. shoot_start = 150,
  59. shoot_end = 200,
  60. }
  61. })