white_werewolf.lua 1.2 KB

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