oerkki.lua 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. -- That flying thing.
  2. mobs.register_mob("oerkki:oerkki", {
  3. type = "monster",
  4. description = "Flying Menace",
  5. passive = false,
  6. attack_type = "dogfight",
  7. pathfinding = 2,
  8. reach = 2,
  9. damage = 3,
  10. hp_min = 8,
  11. hp_max = 34,
  12. armor = 100,
  13. armor_level = 2,
  14. --collisionbox = {-0.3, -1, -0.3, 0.3, 0.7, 0.3},
  15. collisionbox = {-0.4, -0.4, -0.4, 0.4, 0.4, 0.4},
  16. visual = "mesh",
  17. mesh = "mobs_oerkki2.b3d",
  18. textures = {
  19. {"mobs_oerkki3.png"},
  20. },
  21. rotate = 270,
  22. makes_footstep_sound = false,
  23. sounds = {
  24. random = "mobs_oerkki",
  25. },
  26. walk_velocity = 2,
  27. run_velocity = 5,
  28. view_range = 15,
  29. jump = false,
  30. fly = true,
  31. fly_in = "air",
  32. drops = {
  33. {name = "mobs:meat_raw", chance = 1, min = 1, max = 2},
  34. {name = "mobs:leather", chance = 2, min = 1, max = 1},
  35. },
  36. water_damage = 1,
  37. lava_damage = 100,
  38. light_damage = 1,
  39. fear_height = 0,
  40. animation = {
  41. stand_start = 1,
  42. stand_end = 29,
  43. walk_start = 1,
  44. walk_end = 29,
  45. run_start = 1,
  46. run_end = 29,
  47. punch_start = 30,
  48. punch_end = 60,
  49. speed_normal = 15,
  50. speed_run = 15,
  51. },
  52. replace_rate = 10,
  53. replace_what = {
  54. "torches:torch_floor",
  55. "torches:torch_wall",
  56. "torches:torch_ceiling",
  57. "torches:kalite_torch_floor",
  58. "torches:kalite_torch_wall",
  59. "torches:kalite_torch_ceiling",
  60. },
  61. replace_with = "air",
  62. replace_offset = 0,
  63. replace_range = 2,
  64. immune_to = {
  65. {"default:gold_lump", -10}, -- heals by 10 points
  66. },
  67. })
  68. mobs.register_egg("oerkki:oerkki", "Oerkki", "default_obsidian.png", 1)
  69. mobs.alias_mob("mobs_monster:oerkki2", "oerkki:oerkki")