griefer.lua 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. mobs.register_mob("griefer:griefer", {
  2. description = "Black-Hearted Oerkki",
  3. type = "monster",
  4. passive = false,
  5. attack_type = "dogfight",
  6. pathfinding = 2,
  7. reach = 2,
  8. damage = 4,
  9. hp_min = 8,
  10. hp_max = 34,
  11. armor = 100,
  12. armor_level = 2,
  13. -- Slightly smaller collision box makes mob movement easier.
  14. collisionbox = {-0.3, -1, -0.3, 0.3, 0.7, 0.3},
  15. --collisionbox = {-0.4, -1, -0.4, 0.4, 0.9, 0.4},
  16. visual = "mesh",
  17. mesh = "griefer_griefer.b3d",
  18. textures = {
  19. {"griefer_griefer1.png"},
  20. {"griefer_griefer2.png"},
  21. },
  22. makes_footstep_sound = false,
  23. sounds = {
  24. random = "griefer_griefer",
  25. },
  26. walk_velocity = 1,
  27. run_velocity = 3,
  28. view_range = 20,
  29. jump = true,
  30. drops = {
  31. {name = "default:junglegrass", chance = 10*3, min = 1, max = 2},
  32. {name = "default:grass_dummy", chance = 6*3, min = 1, max = 2},
  33. {name = "default:cactus", chance = 15*3, min = 1, max = 1},
  34. {name = "default:dry_shrub", chance = 4, min = 1, max = 5},
  35. {name = "default:papyrus", chance = 15, min = 1, max = 3},
  36. -- Required to make it possible to obtain more dirt in Caverealm survival.
  37. {name = "bones:bones_type2", chance = 5, min = 1, max = 1},
  38. },
  39. water_damage = 0,
  40. lava_damage = 4,
  41. makes_bones_in_lava = false,
  42. light_damage = 0,
  43. fear_height = 3,
  44. animation = {
  45. stand_start = 0,
  46. stand_end = 23,
  47. walk_start = 24,
  48. walk_end = 36,
  49. run_start = 37,
  50. run_end = 49,
  51. punch_start = 37,
  52. punch_end = 49,
  53. speed_normal = 15,
  54. speed_run = 15,
  55. },
  56. replace_rate = 10,
  57. replace_what = {
  58. "torches:torch_floor",
  59. "torches:torch_wall",
  60. "torches:torch_ceiling",
  61. "torches:kalite_torch_floor",
  62. "torches:kalite_torch_wall",
  63. "torches:kalite_torch_ceiling",
  64. },
  65. replace_with = "air",
  66. replace_offset = 0,
  67. replace_range = 2,
  68. immune_to = {
  69. {"default:gold_lump", -10}, -- heals by 10 points
  70. },
  71. })
  72. mobs.register_spawn_abm({
  73. name = "griefer:griefer",
  74. nodes = {"griefer:grieferstone"},
  75. interval = 3,
  76. chance = 10,
  77. -- Warning, do NOT change! The cursed-stone configuration in the Outback's gateroom depends on this.
  78. min_light = 0,
  79. max_light = 5,
  80. player_min_range = 4,
  81. player_max_range = 30,
  82. mob_limit = 3,
  83. absolute_mob_limit = 16,
  84. mob_range = 20,
  85. min_count = 1,
  86. max_count = 3,
  87. })
  88. mobs.register_egg("griefer:griefer", "Black Hearted Griefer", "default_obsidian.png", 1)
  89. mobs.alias_mob("mobs_monster:oerkki", "griefer:griefer")
  90. mobs.alias_mob("mobs:oerkki", "griefer:griefer")