oerkki.lua 1.7 KB

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