oerkki.lua 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. local S = mobs.intllib
  2. -- Oerkki by PilzAdam
  3. mobs:register_mob("mobs_monster:oerkki", {
  4. type = "monster",
  5. passive = false,
  6. attack_type = "dogfight",
  7. pathfinding = true,
  8. reach = 2,
  9. damage = 8,
  10. hp_min = 8,
  11. hp_max = 34,
  12. armor = 100,
  13. collisionbox = {-0.4, -1, -0.4, 0.4, 0.9, 0.4},
  14. visual = "mesh",
  15. mesh = "mobs_oerkki.b3d",
  16. textures = {
  17. {"mobs_oerkki.png"},
  18. {"mobs_oerkki2.png"},
  19. },
  20. makes_footstep_sound = false,
  21. sounds = {
  22. random = "mobs_oerkki",
  23. },
  24. walk_velocity = 1,
  25. run_velocity = 3,
  26. view_range = 10,
  27. jump = true,
  28. drops = {
  29. {name = "default:obsidian", chance = 3, min = 0, max = 2},
  30. {name = "default:gold_lump", chance = 2, min = 0, max = 2},
  31. {name = 'epic:bloodstone', chance = 6, min = 1, max = 3},
  32. {name = "commoditymarket:gold_coins", chance = 3, min = 6, max = 94},
  33. },
  34. water_damage = 2,
  35. lava_damage = 4,
  36. light_damage = 1,
  37. fear_height = 4,
  38. animation = {
  39. stand_start = 0,
  40. stand_end = 23,
  41. walk_start = 24,
  42. walk_end = 36,
  43. run_start = 37,
  44. run_end = 49,
  45. punch_start = 37,
  46. punch_end = 49,
  47. speed_normal = 15,
  48. speed_run = 15,
  49. },
  50. replace_rate = 5,
  51. replace_what = {"default:torch"},
  52. replace_with = "air",
  53. replace_offset = -1,
  54. immune_to = {
  55. {"default:sword_wood", 0}, -- no damage
  56. {"default:gold_lump", -10}, -- heals by 10 points
  57. },
  58. })
  59. mobs:spawn({
  60. name = "mobs_monster:oerkki",
  61. nodes = {"default:stone"},
  62. max_light = 7,
  63. chance = 7000,
  64. max_height = -10,
  65. })
  66. mobs:register_egg("mobs_monster:oerkki", S("Oerkki"), "default_obsidian.png", 1)
  67. mobs:alias_mob("mobs:oerkki", "mobs_monster:oerkki") -- compatiblity