suboar.lua 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. mobs.register_mob("animalworld:suboar", {
  2. stepheight = 2,
  3. type = "animal",
  4. description = "Swinepig",
  5. passive = false,
  6. attack_type = "dogfight",
  7. group_attack = true,
  8. -- Mob should defend itself but does not attack first.
  9. attack_players = false,
  10. attack_npcs = false,
  11. pathfinding = 1,
  12. reach = 2,
  13. damage = 8*500,
  14. damage_group = "snappy",
  15. hp_min = 5*500,
  16. hp_max = 35*500,
  17. armor = 70,
  18. collisionbox = {-0.5, -0.01, -0.5, 0.5, 0.95, 0.5},
  19. visual = "mesh",
  20. mesh = "animalworld_suboar.x",
  21. visual_size = {x = 1.0, y = 1.0},
  22. textures = {
  23. {"animalworld_suboar.png"},
  24. },
  25. sounds = {
  26. random = "animalworld_suboar",
  27. attack = "animalworld_suboar",
  28. },
  29. makes_footstep_sound = true,
  30. walk_velocity = 1,
  31. run_velocity = 3,
  32. runaway = false,
  33. runaway_from = {"player"},
  34. jump = true,
  35. drops = {
  36. {name = "mobs:meat_raw", chance = 1, min = 1, max = 1},
  37. {name = "mobs:leather", chance = 1, min = 1, max = 1},
  38. },
  39. water_damage = 0,
  40. lava_damage = 4*500,
  41. light_damage = 0,
  42. fear_height = 3,
  43. animation = {
  44. speed_normal = 15,
  45. stand_start = 25,
  46. stand_end = 55,
  47. walk_start = 70,
  48. walk_end = 100,
  49. run_start = 70,
  50. run_end = 100,
  51. run_speed = 30,
  52. punch_start = 70,
  53. punch_end = 100,
  54. },
  55. view_range = 20,
  56. makes_bones_in_lava = true,
  57. })
  58. mobs.register_egg("animalworld:suboar", "Swinepig", "default_dirt.png", 1)