init.lua 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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", --causa lag em servidor quando o mob ke atacado.
  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. --[[ --Isso gera Muito Lag no Servifor.
  60. -- ESSA PARTE FOI RETIRADA DO MOD DE ENDERMAN DO MOBS MINECLONE :)
  61. do_custom = function(self, dtime)
  62. -- PARTICLE BEHAVIOUR HERE.
  63. local specpos = self.object:get_pos()
  64. local chanceOfParticle = math.random(0, 1)
  65. if chanceOfParticle == 1 then
  66. minetest.add_particle({
  67. 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},
  68. velocity = {x=math.random(-.25,.25), y=math.random(-.25,.25), z=math.random(-.25,.25)},
  69. acceleration = {x=math.random(-.5,.5), y=math.random(-.5,.5), z=math.random(-.5,.5)},
  70. expirationtime = math.random(),
  71. size = math.random(),
  72. collisiondetection = true,
  73. vertical = false,
  74. texture = "fqp.png",
  75. })
  76. end
  77. end,
  78. --]]
  79. })
  80. if not mobs.custom_spawn_monster then
  81. mobs:spawn({
  82. --name = {"frostyqueen:frostyqueen","ethereal:gray_dirt"},
  83. name = "frostyqueen:frostyqueen",
  84. nodes = {
  85. "ethereal:crystal",
  86. "ethereal:frost_leaves",
  87. "ethereal:gray_dirt",
  88. },
  89. --min_light = 0,
  90. max_light = 7, --Por brilhar no escuro, so spawna a noite.
  91. interval = 60,
  92. chance = 12000,
  93. min_height = 0,
  94. --max_height = 200,
  95. })
  96. end
  97. -- ARROW -----------------------------------------------------------
  98. mobs:register_arrow("frostyqueen:spectrum_arrow", {
  99. visual = "sprite",
  100. visual_size = {x = 0.5, y = 0.5},
  101. velocity = 18,
  102. textures = {"fqp.png"},
  103. tail = 1,
  104. tail_texture = "fqp.png",
  105. tail_size = 10,
  106. glow = 5,
  107. expire = 0.1,
  108. --[[
  109. hit_player = function(self, player)
  110. player:punch(self.object, 1.0, {
  111. full_punch_interval = 1.0,
  112. damage_groups = {fleshy = 8},
  113. }, nil)
  114. end,
  115. hit_mob = function(self, player)
  116. player:punch(self.object,1.0, {
  117. full_punch_interval = 1.0,
  118. damage_groups = {fleshy = 8},
  119. }, nil)
  120. end,
  121. --]]
  122. -- ao invés da causa dano elas alta monstros
  123. hit_node = function(self, pos, oldnode ,node)
  124. minetest.add_entity ( pos , "frozenskulls:frozenskulls")
  125. end
  126. })
  127. mobs:register_egg("frostyqueen:frostyqueen", "frostyqueen", "eggsfrostyqueen.png", 1)
  128. core.register_alias("frostyqueen:frostyqueen", "spawneggs:frostyqueen")
  129. mobs:alias_mob("frostyqueen:frostyqueen", "mobs:frostyqueen") -- compatibility