init.lua 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. warthog = warthog or {}
  2. warthog.modpath = minetest.get_modpath("warthog")
  3. -- Warthog by KrupnoPavel. Modified for MustTest by MustTest.
  4. mobs.register_mob("warthog:warthog", {
  5. description = "Nether Swinepig",
  6. type = "animal",
  7. passive = false,
  8. attack_type = "dogfight",
  9. group_attack = true,
  10. reach = 2,
  11. pathfinding = 1,
  12. damage = 5,
  13. hp_min = 5,
  14. hp_max = 50,
  15. armor = 200,
  16. armor_level = 2,
  17. collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},
  18. visual = "mesh",
  19. mesh = "warthog_warthog.x",
  20. textures = {
  21. {"warthog_warthog.png"},
  22. },
  23. makes_footstep_sound = true,
  24. sounds = {
  25. random = "warthog_warthog",
  26. attack = "warthog_warthog_angry",
  27. },
  28. walk_velocity = 0.5,
  29. run_velocity = 3,
  30. jump = true,
  31. view_range = 20,
  32. drops = {
  33. {name = "mobs:meat_raw_pork", chance = 1, min = 1, max = 2},
  34. {name = "mobs:leather", chance = 2, min = 1, max = 1},
  35. },
  36. water_damage = 1,
  37. lava_damage = 5,
  38. light_damage = 0,
  39. fear_height = 3,
  40. animation = {
  41. speed_normal = 15,
  42. stand_start = 25,
  43. stand_end = 55,
  44. walk_start = 70,
  45. walk_end = 100,
  46. punch_start = 70,
  47. punch_end = 100,
  48. },
  49. makes_bones_in_lava = true,
  50. })
  51. mobs.register_egg("warthog:warthog", "Warthog", "rackstone_rackstone.png", 1)