init.lua 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. -- SOUNDS LINK :
  2. -- Bones : https://freesound.org/people/spookymodem/sounds/202091/
  3. -- sword : https://freesound.org/people/Merrick079/sounds/568169/
  4. ---- SKULL SWORD ------------------------------------------------------------------------------------------------------
  5. mobs:register_mob("frozenskulls:frozenskulls", {
  6. --nametag = "Frozen Skulls" ,
  7. type = "monster",
  8. passive = false,
  9. attack_type = "dogfight",
  10. pathfinding = true,
  11. reach = 3,
  12. damage = 15,
  13. hp_min = 80,
  14. hp_max = 80,
  15. armor = 80,
  16. collisionbox = {-0.4, -1, -0.4, 0.4, 0.9, 0.4},
  17. visual = "mesh",
  18. mesh = "skull_sword.b3d",
  19. rotate = 180,
  20. textures = {
  21. {"skull_sword_crystal.png"},
  22. },
  23. --glow = 4,
  24. blood_texture = "bonex.png",
  25. makes_footstep_sound = true,
  26. sounds = {
  27. attack = "sword",
  28. death = "falling_bones",
  29. },
  30. walk_velocity = 1,
  31. run_velocity = 5,
  32. jump_height = 2,
  33. stepheight = 1.1,
  34. floats = 0,
  35. view_range = 45,
  36. drops = {
  37. --{name = "", chance = 2, min = 1, max = 1},
  38. --{name = "", chance = 5, min = 1, max = 1},
  39. --{name = "", chance = 3, min = 1, max = 1},
  40. },
  41. water_damage = 0,
  42. lava_damage = 1,
  43. light_damage = 0,
  44. animation = {
  45. speed_normal = 15,
  46. speed_run = 15,
  47. stand_start = 0,
  48. stand_end = 0,
  49. walk_start = 15,
  50. walk_end = 33,
  51. run_start = 35,
  52. run_end = 53,
  53. --punch_start = 40,
  54. --punch_end = 63,
  55. },
  56. })
  57. --[[
  58. mobs:spawn({
  59. name = "frozenskulls:frozenskulls",
  60. nodes = skullnods,
  61. min_light = 0,
  62. max_light = 14,
  63. chance = 6000,
  64. --min_height = 0,
  65. --max_height = 200,
  66. max_height = 200,
  67. })
  68. ]]
  69. mobs:register_egg("frozenskulls:frozenskulls", "Frozen Skulls", "eggsskullfrozen.png", 1)
  70. core.register_alias("frozenskulls:frozenskulls", "spawneggs:frozenskulls")
  71. mobs:alias_mob("frozenskulls:frozenskulls", "mobs:frozenskulls") -- compatibility