elite.lua 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. mobs.register_mob("griefer:elite_griefer", {
  2. description = "Elite Oerkki",
  3. type = "npc",
  4. passive = false,
  5. attack_animals = true,
  6. attack_players = true,
  7. attack_type = "dogfight",
  8. pathfinding = 3,
  9. pathing_radius = 20,
  10. max_node_dig_level = 2,
  11. reach = 2, -- Mob will try to move this close to target.
  12. punch_reach = 3, -- Mob can hit from this far away.
  13. damage = 8,
  14. damage_min = 8,
  15. damage_max = 16,
  16. hp_min = 160,
  17. hp_max = 260,
  18. armor = 100,
  19. show_health = false,
  20. -- Never expires.
  21. lifetimer = 100000,
  22. -- Require level 3 weapon to get any drops.
  23. armor_level = 3,
  24. -- Slightly smaller collision box makes mob movement easier.
  25. collisionbox = {-0.3, -1, -0.3, 0.3, 0.7, 0.3},
  26. --collisionbox = {-0.4, -1, -0.4, 0.4, 0.9, 0.4},
  27. visual = "mesh",
  28. mesh = "griefer_elite.b3d",
  29. textures = {
  30. {"griefer_griefer3.png"},
  31. },
  32. makes_footstep_sound = false,
  33. sounds = {
  34. random = "griefer_elite",
  35. war_cry = "griefer_elite",
  36. shoot_attack = "dm_fireball",
  37. },
  38. walk_velocity = 1,
  39. run_velocity = 3,
  40. sprint_velocity = 4,
  41. view_range = 30,
  42. jump = true,
  43. drops = {
  44. {name = "default:goldblock", chance = 1, min = 1, max = 1},
  45. {name = "cavestuff:dark_obsidian", chance = 1, min = 1, max = 5},
  46. },
  47. -- The node needs to be something the Oerkki can also dig,
  48. -- otherwise it might trap itself.
  49. place_node = "default:cobble",
  50. water_damage = 0,
  51. lava_damage = 4,
  52. makes_bones_in_lava = false,
  53. light_damage = 0,
  54. fear_height = 3,
  55. animation = {
  56. speed_normal = 30,
  57. speed_run = 30,
  58. stand_start = 0,
  59. stand_end = 79,
  60. walk_start = 168,
  61. walk_end = 187,
  62. run_start = 168,
  63. run_end = 187,
  64. punch_start = 200,
  65. punch_end = 219,
  66. },
  67. replace_rate = 10,
  68. replace_what = {
  69. "torches:torch_floor",
  70. "torches:torch_wall",
  71. "torches:torch_ceiling",
  72. "torches:kalite_torch_floor",
  73. "torches:kalite_torch_wall",
  74. "torches:kalite_torch_ceiling",
  75. },
  76. replace_with = "air",
  77. replace_offset = 0,
  78. replace_range = 2,
  79. immune_to = {
  80. {"default:gold_lump", -10}, -- heals by 10 points
  81. },
  82. ignore_invisibility = true,
  83. knock_back = false,
  84. --hunt_players = true,
  85. hunt_chance = 5,
  86. arrow = "griefer:fireball",
  87. shoot_offset = 1,
  88. do_custom = function(...)
  89. return griefer.elite_do_custom(...)
  90. end,
  91. do_punch = function(...)
  92. return griefer.elite_do_punch(...)
  93. end,
  94. })
  95. mobs.register_egg("griefer:elite_griefer", "Elite Griefer", "default_gold_block.png", 1)