suboar.lua 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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,
  14. hp_min = 5,
  15. hp_max = 35,
  16. armor = 70,
  17. collisionbox = {-0.5, -0.01, -0.5, 0.5, 0.95, 0.5},
  18. visual = "mesh",
  19. mesh = "animalworld_suboar.x",
  20. visual_size = {x = 1.0, y = 1.0},
  21. textures = {
  22. {"animalworld_suboar.png"},
  23. },
  24. sounds = {
  25. random = "animalworld_suboar",
  26. attack = "animalworld_suboar",
  27. },
  28. makes_footstep_sound = true,
  29. walk_velocity = 1,
  30. run_velocity = 3,
  31. runaway = false,
  32. runaway_from = {"player"},
  33. jump = true,
  34. drops = {
  35. {name = "mobs:meat_raw", chance = 1, min = 1, max = 1},
  36. {name = "mobs:leather", chance = 1, min = 1, max = 1},
  37. },
  38. water_damage = 0,
  39. lava_damage = 4,
  40. light_damage = 0,
  41. fear_height = 3,
  42. animation = {
  43. speed_normal = 15,
  44. stand_start = 25,
  45. stand_end = 55,
  46. walk_start = 70,
  47. walk_end = 100,
  48. run_start = 70,
  49. run_end = 100,
  50. run_speed = 30,
  51. punch_start = 70,
  52. punch_end = 100,
  53. },
  54. view_range = 20,
  55. makes_bones_in_lava = true,
  56. })
  57. mobs.register_egg("animalworld:suboar", "Swinepig", "default_dirt.png", 1)