griefer.lua 2.5 KB

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