init.lua 1.8 KB

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