octopus.lua 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. mobs:register_mob("nssm:octopus", {
  2. type = "monster",
  3. hp_max = 32,
  4. hp_min = 25,
  5. collisionbox = {-0.9, -0.5, -0.9, 0.9, 0.92, 0.9},
  6. visual = "mesh",
  7. mesh = "octopus.x",
  8. textures = {
  9. {"octopus.png"}
  10. },
  11. visual_size = {x = 4, y = 4},
  12. view_range = 25,
  13. fly = true,
  14. fly_in = "default:water_source",
  15. fall_speed = -20,
  16. walk_velocity = 1.5,
  17. run_velocity = 3,
  18. damage = 5,
  19. reach = 2,
  20. rotate = 270,
  21. jump = false,
  22. jump_chance = 0,
  23. jump_height = 0,
  24. sounds = {
  25. random = "octopus",
  26. },
  27. drops = {
  28. {name = "nssm:life_energy", chance = 1, min = 2, max = 3},
  29. {name = "nssm:tentacle", chance = 1, min = 1, max = 8},
  30. },
  31. armor = 70,
  32. drawtype = "front",
  33. water_damage = 0,
  34. lava_damage = 10,
  35. fire_damage = 10,
  36. light_damage = 0,
  37. group_attack = true,
  38. attack_animals = true,
  39. knock_back = 2,
  40. blood_texture = "nssm_blood_blue.png",
  41. attack_type = "dogfight",
  42. animation = {
  43. speed_normal = 25,
  44. speed_run = 35,
  45. stand_start = 1,
  46. stand_end = 50,
  47. walk_start = 60,
  48. walk_end = 100,
  49. run_start = 60,
  50. run_end = 100,
  51. punch_start = 120,
  52. punch_end = 160,
  53. }
  54. })
  55. mobs:register_mob("nssm:xgaloctopus", {
  56. type = "monster",
  57. hp_max = 30,
  58. hp_min = 27,
  59. collisionbox = {-0.25, -0.25, -0.25, 0.25, 0.25, 0.25},
  60. visual = "mesh",
  61. mesh = "octopus.x",
  62. textures = {
  63. {"xgaloctopus.png"}
  64. },
  65. visual_size = {x = 1, y = 1},
  66. view_range = 25,
  67. fly = true,
  68. fly_in = "default:water_source",
  69. fall_speed = -20,
  70. walk_velocity = 1.5,
  71. run_velocity = 3,
  72. damage = 5,
  73. reach = 1,
  74. rotate = 270,
  75. jump = false,
  76. jump_chance = 0,
  77. jump_height = 0,
  78. sounds = {
  79. random = "octopus",
  80. },
  81. drops = {
  82. {name = "nssm:life_energy", chance = 1, min = 2, max = 3},
  83. {name = "nssm:tentacle", chance = 1, min = 1, max = 8},
  84. },
  85. armor = 60,
  86. drawtype = "front",
  87. water_damage = 0,
  88. lava_damage = 10,
  89. fire_damage = 10,
  90. light_damage = 0,
  91. group_attack = true,
  92. attack_animals = true,
  93. knock_back = 2,
  94. blood_texture = "nssm_blood_blue.png",
  95. attack_type = "dogfight",
  96. animation = {
  97. speed_normal = 25,
  98. speed_run = 35,
  99. stand_start = 1,
  100. stand_end = 50,
  101. walk_start = 60,
  102. walk_end = 100,
  103. run_start = 60,
  104. run_end = 100,
  105. punch_start = 120,
  106. punch_end = 160,
  107. },
  108. replace_rate = 1,
  109. replace_what = {"default:torch"},
  110. replace_with = "default:water_source",
  111. replace_offset = 0,
  112. })