uloboros.lua 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. mobs:register_mob("nssm:uloboros", {
  2. type = "monster",
  3. hp_max = 28,
  4. hp_min = 17,
  5. collisionbox = {-0.5, 0.00, -0.5, 0.5, 0.8, 0.5},
  6. visual = "mesh",
  7. mesh = "uloboros.x",
  8. textures = {
  9. {"uloboros.png"}
  10. },
  11. visual_size = {x = 4, y = 4},
  12. makes_footstep_sound = true,
  13. view_range = 22,
  14. walk_velocity = 1.5,
  15. fear_height = 4,
  16. run_velocity = 2.5,
  17. rotate = 270,
  18. sounds = {
  19. random = "uloboros",
  20. },
  21. damage = 5,
  22. reach = 2,
  23. jump = true,
  24. drops = {
  25. {name = "nssm:life_energy", chance = 1, min = 1, max = 4},
  26. {name = "nssm:spider_leg", chance = 2, min = 1, max = 8},
  27. {name = "nssm:silk_gland", chance = 4, min = 1, max = 3},
  28. {name = "nssm:spider_meat", chance = 4, min = 1, max = 2},
  29. },
  30. armor = 80,
  31. drawtype = "front",
  32. water_damage = 1,
  33. lava_damage = 7,
  34. fire_damage = 7,
  35. light_damage = 0,
  36. group_attack = true,
  37. attack_animals = true,
  38. knock_back = 2,
  39. blood_texture = "nssm_blood_blue.png",
  40. stepheight = 1.1,
  41. attack_type = "dogfight",
  42. animation = {
  43. speed_normal = 20,
  44. speed_run = 30,
  45. stand_start = 1,
  46. stand_end = 80,
  47. walk_start = 120,
  48. walk_end = 160,
  49. run_start = 120,
  50. run_end = 160,
  51. punch_start = 80,
  52. punch_end = 110,
  53. },
  54. do_custom = function(self)
  55. webber_ability(self, "nssm:web", 2)
  56. end,
  57. })