phoenix.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. mobs:register_mob("nssm:phoenix", {
  2. type = "monster",
  3. hp_max = 160,
  4. hp_min = 160,
  5. collisionbox = {-0.65, -0.4, -0.65, 0.65, 0.4, 0.65},
  6. visual = "mesh",
  7. mesh = "phoenix.x",
  8. textures = {
  9. {"phoenix.png"}
  10. },
  11. visual_size = {x = 18, y = 18},
  12. view_range = 40,
  13. lifetimer = 500,
  14. floats = 1,
  15. rotate = 270,
  16. walk_velocity = 2,
  17. run_velocity = 2.5,
  18. fall_speed = 0,
  19. stepheight = 3,
  20. sounds = {
  21. random = "phoenix",
  22. distance = 45,
  23. },
  24. damage = 2,
  25. jump = false,
  26. drops = {
  27. {name = "nssm:life_energy", chance = 1, min = 7, max = 8},
  28. {name = "nssm:sun_feather", chance = 1, min = 1, max = 1},
  29. {name = "nssm:phoenix_tear", chance = 1, min = 5, max = 6},
  30. {name = "nssm:phoenix_nuggets", chance = 6, min = 10, max = 20},
  31. },
  32. armor = 40,
  33. drawtype = "front",
  34. water_damage = 5,
  35. lava_damage = 0,
  36. fire_damage = 0,
  37. light_damage = 0,
  38. blood_texture = "nssm_blood.png",
  39. blood_amount = 50,
  40. fly = true,
  41. attack_type = "shoot",
  42. arrow = "nssm:phoenix_arrow",
  43. reach = 1,
  44. shoot_interval = 4,
  45. animation = {
  46. speed_normal = 25,
  47. speed_run = 25,
  48. stand_start = 220,
  49. stand_end = 280,
  50. walk_start = 140,
  51. walk_end = 180,
  52. run_start = 190,
  53. run_end = 210,
  54. punch_start = 80,
  55. punch_end = 110,
  56. shoot_start = 80,
  57. shoot_end = 110,
  58. }
  59. })