werewolf.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. mobs:register_mob("nssm:werewolf", {
  2. type = "monster",
  3. hp_max = 40,
  4. hp_min = 25,
  5. collisionbox = {-0.85, -0.01, -0.85, 0.85, 3.50, 0.85},
  6. visual = "mesh",
  7. mesh = "werewolf.x",
  8. textures = {
  9. {"werewolf.png"}
  10. },
  11. visual_size = {x = 4, y = 4},
  12. makes_footstep_sound = true,
  13. view_range = 30,
  14. walk_velocity = 3,
  15. fear_height = 4,
  16. run_velocity = 5,
  17. sounds = {
  18. random = "werewolf",
  19. },
  20. damage = 5,
  21. jump = true,
  22. drops = {
  23. {name = "nssm:life_energy", chance = 1, min = 3, max = 4},
  24. {name = "nssm:werewolf_leg", chance = 2, min = 1, max = 2},
  25. {name = "nssm:wolf_fur", chance = 2, min = 1, max = 1},
  26. },
  27. armor = 80,
  28. drawtype = "front",
  29. water_damage = 2,
  30. lava_damage = 5,
  31. fire_damage = 5,
  32. light_damage = 0,
  33. group_attack = true,
  34. attack_animals = true,
  35. knock_back = 2,
  36. blood_texture = "nssm_blood.png",
  37. stepheight = 1.1,
  38. attack_type = "dogfight",
  39. animation = {
  40. speed_normal = 15,
  41. speed_run = 25,
  42. stand_start = 1,
  43. stand_end = 60,
  44. walk_start = 90,
  45. walk_end = 130,
  46. run_start = 140,
  47. run_end = 160,
  48. punch_start = 170,
  49. punch_end = 193,
  50. }
  51. })