init.lua 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. -- SOUNDS :
  2. -- https://freesound.org/people/MadamVicious/sounds/218185/
  3. -- https://freesound.org/people/satchdev/sounds/325411/
  4. mobs:register_mob("frostyqueen:frostyqueen", {
  5. nametag = "Frosty Queen Boss" ,
  6. type = "monster",
  7. passive = false,
  8. attack_npcs = false,
  9. attack_type = "shoot",
  10. shoot_interval = 15.0,
  11. shoot_offset = 1.5,
  12. arrow = "frostyqueen:spectrum_arrow",
  13. pathfinding = true,
  14. reach = 1,
  15. damage = 5,
  16. hp_min = 1600,
  17. hp_max = 1600,
  18. armor = 80,
  19. collisionbox = {-0.4, -1, -0.4, 0.4, 0.9, 0.4},
  20. visual = "mesh",
  21. mesh = "frostyqueen.b3d",
  22. rotate = 180,
  23. textures = {
  24. {"frostyqueen.png"},
  25. },
  26. glow = 8,
  27. blood_texture = "fqp.png",
  28. makes_footstep_sound = true,
  29. sounds = {
  30. random = "girlsmile",
  31. death = "gameover",
  32. },
  33. --fly = true ,
  34. --fly_in = "air",
  35. walk_velocity = 1,
  36. run_velocity = 5,
  37. jump_height = 1,
  38. stepheight = 1.1,
  39. floats = 0,
  40. view_range = 35,
  41. drops = {
  42. {name = "ebitems:frostyqueen_trophy", chance = 1, min = 1, max =1},
  43. {name = "ethereal:crystal_gilly_staff", chance = 3, min = 1, max =1},
  44. },
  45. water_damage = 0,
  46. lava_damage = 0,
  47. light_damage = 0,
  48. animation = {
  49. speed_run = 15,
  50. stand_start = 1,
  51. stand_end = 20,
  52. walk_start = 30,
  53. walk_end = 50,
  54. run_start = 30,
  55. run_end = 50,
  56. shoot_start =60,
  57. shoot_end = 90,
  58. },
  59. -- ESSA PARTE FOI RETIRADA DO MOD DE ENDERMAN DO MOBS MINECLONE :)
  60. do_custom = function(self, dtime)
  61. -- PARTICLE BEHAVIOUR HERE.
  62. local specpos = self.object:get_pos()
  63. local chanceOfParticle = math.random(0, 1)
  64. if chanceOfParticle == 1 then
  65. minetest.add_particle({
  66. pos = {x=specpos.x+math.random(-1,1)*math.random()/2,y=specpos.y+math.random(0,3),z=specpos.z+math.random(-1,1)*math.random()/2},
  67. velocity = {x=math.random(-.25,.25), y=math.random(-.25,.25), z=math.random(-.25,.25)},
  68. acceleration = {x=math.random(-.5,.5), y=math.random(-.5,.5), z=math.random(-.5,.5)},
  69. expirationtime = math.random(),
  70. size = math.random(),
  71. collisiondetection = true,
  72. vertical = false,
  73. texture = "fqp.png",
  74. })
  75. end
  76. end,
  77. })
  78. mobs:spawn({
  79. name = {"frostyqueen:frostyqueen","ethereal:gray_dirt"},
  80. nodes = {"ethereal:crystal","ethereal:frost_leaves"},
  81. max_light = 7,
  82. chance = 12000,
  83. max_height = 200,
  84. })
  85. -- ARROW -----------------------------------------------------------
  86. mobs:register_arrow("frostyqueen:spectrum_arrow", {
  87. visual = "sprite",
  88. visual_size = {x = 0.5, y = 0.5},
  89. velocity = 18,
  90. textures = {"fqp.png"},
  91. tail = 1,
  92. tail_texture = "fqp.png",
  93. tail_size = 10,
  94. glow = 5,
  95. expire = 0.1,
  96. --[[
  97. hit_player = function(self, player)
  98. player:punch(self.object, 1.0, {
  99. full_punch_interval = 1.0,
  100. damage_groups = {fleshy = 8},
  101. }, nil)
  102. end,
  103. hit_mob = function(self, player)
  104. player:punch(self.object,1.0, {
  105. full_punch_interval = 1.0,
  106. damage_groups = {fleshy = 8},
  107. }, nil)
  108. end,
  109. ]]
  110. hit_node = function(self, pos, oldnode ,node)
  111. minetest.add_entity ( pos , "frozenskulls:frozenskulls")
  112. end
  113. })
  114. mobs:register_egg("frostyqueen:frostyqueen", "frostyqueen", "eggsfrostyqueen.png", 1)
  115. core.register_alias("frostyqueen:frostyqueen", "spawneggs:frostyqueen")
  116. mobs:alias_mob("frostyqueen:frostyqueen", "mobs:frostyqueen") -- compatibility