guard.lua 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. -------------------------------------------------------------------------------
  2. --Guard
  3. mobs:register_mob(
  4. "mobs_dungeon:guard",
  5. {
  6. type="monster",
  7. passive=false,
  8. attack_type="dogfight",
  9. pathfinding=true,
  10. reach=2,
  11. damage=3,
  12. hp_min=15,
  13. hp_max=30,
  14. armor=80,
  15. collisionbox={-0.5, -0.5, -0.5, 0.5, 1.2, 0.5},
  16. visual="mesh",
  17. mesh="zmobs_lava_flan.x",
  18. textures={
  19. {"mobs_dungeon_guard.png"},
  20. {"mobs_dungeon_guard1.png"},
  21. {"mobs_dungeon_guard2.png"},
  22. {"mobs_dungeon_guard3.png"},
  23. {"mobs_dungeon_guarda.png"},
  24. {"mobs_dungeon_guarda1.png"},
  25. {"mobs_dungeon_guarda2.png"},
  26. {"mobs_dungeon_guarda3.png"},
  27. {"mobs_dungeon_guardb.png"},
  28. {"mobs_dungeon_guardb1.png"},
  29. {"mobs_dungeon_guardb3.png"},
  30. },
  31. makes_footstep_sound=true,
  32. sounds={
  33. random="mobs_dungeon_guard_random",
  34. attack="mobs_dungeon_guard_attack",
  35. death="mobs_dungeon_guard_death",
  36. },
  37. walk_velocity=1,
  38. run_velocity=2,
  39. jump=true,
  40. jump_height=1,
  41. view_range=10,
  42. drops={},
  43. water_damage=0,
  44. lava_damage=1,
  45. light_damage=0,
  46. animation={
  47. speed_normal=15,
  48. speed_run=15,
  49. stand_start=0,
  50. stand_end=8,
  51. walk_start=10,
  52. walk_end=18,
  53. run_start=20,
  54. run_end=28,
  55. punch_start=20,
  56. punch_end=28,
  57. },
  58. stay_near={
  59. "dungeon:barrel"
  60. }
  61. }
  62. )
  63. mobs:register_egg(
  64. "mobs_dungeon:guard", "Guard",
  65. "mobs_dungeon_guard.png", 1
  66. )