init.lua 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. -- SOUNDS LINK :
  2. -- Bones : https://freesound.org/people/spookymodem/sounds/202091/
  3. -- sword : https://freesound.org/people/Merrick079/sounds/568169/
  4. local skullnods = {
  5. "default:dirt",
  6. "default:dirt_with_rainforest",
  7. "default:dirt_with_grass",
  8. "default:dirt_with_dry_grass",
  9. "default:dry_dirt_with_dry_grass",
  10. "default:dirt_with_coniferous_litter",
  11. "default:stone",
  12. "default:ice",
  13. "default:snowblock",
  14. "default:dirt_with_snow",
  15. "default:sand",
  16. "default:desert_sand",
  17. "default:desert_stone",
  18. "default:stone",
  19. "default:desert_stone",
  20. --"default:cobble",
  21. "default:mossycobble",
  22. "default:chest",
  23. "default:ice",
  24. }
  25. ---- SKULL SWORD ------------------------------------------------------------------------------------------------------
  26. mobs:register_mob("skullsword:ssword", {
  27. --nametag = "Skull Sword" ,
  28. type = "monster",
  29. passive = false,
  30. attack_type = "dogfight",
  31. pathfinding = true,
  32. reach = 3,
  33. damage = 5,
  34. hp_min = 20,
  35. hp_max = 20,
  36. armor = 100,
  37. collisionbox = {-0.4, -1, -0.4, 0.4, 0.9, 0.4},
  38. visual = "mesh",
  39. mesh = "skull_sword.b3d",
  40. rotate = 180,
  41. textures = {
  42. {"skull_sword.png"},
  43. },
  44. --glow = 4,
  45. blood_texture = "bonex.png",
  46. makes_footstep_sound = true,
  47. sounds = {
  48. attack = "sword",
  49. death = "falling_bones",
  50. },
  51. walk_velocity = 1,
  52. run_velocity = 5,
  53. jump_height = 2,
  54. stepheight = 1.1,
  55. floats = 0,
  56. view_range = 25,
  57. drops = {
  58. {name = "skullkingsitems:bone", chance = 2, min = 1, max = 1},
  59. {name = "default:sword_stone", chance = 5, min = 1, max = 1},
  60. {name = "default:iron_lump", chance = 3, min = 1, max = 1},
  61. },
  62. water_damage = 0,
  63. lava_damage = 1,
  64. light_damage = 0,
  65. animation = {
  66. speed_normal = 15,
  67. speed_run = 15,
  68. stand_start = 0,
  69. stand_end = 0,
  70. walk_start = 15,
  71. walk_end = 33,
  72. run_start = 35,
  73. run_end = 53,
  74. --punch_start = 40,
  75. --punch_end = 63,
  76. },
  77. })
  78. mobs:spawn({
  79. name = "skullsword:ssword",
  80. nodes = skullnods,
  81. min_light = 0,
  82. max_light = 14,
  83. chance = 6000,
  84. --min_height = 0,
  85. --max_height = 200,
  86. max_height = 200,
  87. })
  88. mobs:register_egg("skullsword:ssword", "Skull Sword", "eggsskullsword.png", 1)
  89. core.register_alias("skullsword:ssword", "spawneggs:ssword")