oerkki.lua 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. local S = mobs.intllib_monster
  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 = 4,
  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. {"mobs_oerkki3.png"}
  20. },
  21. makes_footstep_sound = false,
  22. sounds = {
  23. random = "mobs_oerkki"
  24. },
  25. walk_velocity = 1,
  26. run_velocity = 3,
  27. view_range = 10,
  28. jump = true,
  29. drops = {
  30. {name = "default:obsidian", chance = 3, min = 0, max = 2},
  31. {name = "default:gold_lump", chance = 2, min = 0, max = 2}
  32. },
  33. water_damage = 2,
  34. lava_damage = 4,
  35. light_damage = 1,
  36. fear_height = 4,
  37. animation = {
  38. stand_start = 0,
  39. stand_end = 23,
  40. walk_start = 24,
  41. walk_end = 36,
  42. run_start = 37,
  43. run_end = 49,
  44. punch_start = 37,
  45. punch_end = 49,
  46. speed_normal = 15,
  47. speed_run = 15
  48. },
  49. replace_rate = 5,
  50. replace_what = {"default:torch"},
  51. replace_with = "air",
  52. replace_offset = -1,
  53. immune_to = {
  54. {"default:sword_wood", 0}, -- no damage
  55. {"default:gold_lump", -10} -- heals by 10 points
  56. },
  57. })
  58. if not mobs.custom_spawn_monster then
  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. end
  67. mobs:register_egg("mobs_monster:oerkki", S("Oerkki"), "default_obsidian.png", 1)
  68. mobs:alias_mob("mobs:oerkki", "mobs_monster:oerkki") -- compatiblity