123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 |
- -- SOUNDS :
- -- https://freesound.org/people/MadamVicious/sounds/218185/
- -- https://freesound.org/people/satchdev/sounds/325411/
- mobs:register_mob("frostyqueen:frostyqueen", {
- nametag = "Frosty Queen Boss" ,
- type = "monster",
- passive = false,
- attack_npcs = false,
- attack_type = "shoot",
- shoot_interval = 15.0,
- shoot_offset = 1.5,
- arrow = "frostyqueen:spectrum_arrow",
- pathfinding = true,
- reach = 1,
- damage = 5,
- hp_min = 1600,
- hp_max = 1600,
- armor = 80,
- collisionbox = {-0.4, -1, -0.4, 0.4, 0.9, 0.4},
- visual = "mesh",
- mesh = "frostyqueen.b3d",
- rotate = 180,
- textures = {
- {"frostyqueen.png"},
- },
- glow = 8,
- --blood_texture = "fqp.png", --causa lag em servidor quando o mob ke atacado.
- makes_footstep_sound = true,
- sounds = {
- random = "girlsmile",
- death = "gameover",
- },
- --fly = true ,
- --fly_in = "air",
- walk_velocity = 1,
- run_velocity = 5,
- jump_height = 1,
- stepheight = 1.1,
- floats = 0,
- view_range = 35,
- drops = {
- {name = "ebitems:frostyqueen_trophy", chance = 1, min = 1, max =1},
- {name = "ethereal:crystal_gilly_staff", chance = 3, min = 1, max =1},
- },
- water_damage = 0,
- lava_damage = 0,
- light_damage = 0,
- animation = {
- speed_run = 15,
- stand_start = 1,
- stand_end = 20,
- walk_start = 30,
- walk_end = 50,
- run_start = 30,
- run_end = 50,
- shoot_start =60,
- shoot_end = 90,
- },
- --[[ --Isso gera Muito Lag no Servifor.
- -- ESSA PARTE FOI RETIRADA DO MOD DE ENDERMAN DO MOBS MINECLONE :)
- do_custom = function(self, dtime)
- -- PARTICLE BEHAVIOUR HERE.
- local specpos = self.object:get_pos()
- local chanceOfParticle = math.random(0, 1)
- if chanceOfParticle == 1 then
- minetest.add_particle({
- 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},
- velocity = {x=math.random(-.25,.25), y=math.random(-.25,.25), z=math.random(-.25,.25)},
- acceleration = {x=math.random(-.5,.5), y=math.random(-.5,.5), z=math.random(-.5,.5)},
- expirationtime = math.random(),
- size = math.random(),
- collisiondetection = true,
- vertical = false,
- texture = "fqp.png",
- })
- end
- end,
- --]]
- })
- if not mobs.custom_spawn_monster then
- mobs:spawn({
- --name = {"frostyqueen:frostyqueen","ethereal:gray_dirt"},
- name = "frostyqueen:frostyqueen",
- nodes = {
- "ethereal:crystal",
- "ethereal:frost_leaves",
- "ethereal:gray_dirt",
- },
- --min_light = 0,
- max_light = 7, --Por brilhar no escuro, so spawna a noite.
- interval = 60,
- chance = 12000,
- min_height = 0,
- --max_height = 200,
- })
- end
- -- ARROW -----------------------------------------------------------
- mobs:register_arrow("frostyqueen:spectrum_arrow", {
- visual = "sprite",
- visual_size = {x = 0.5, y = 0.5},
- velocity = 18,
- textures = {"fqp.png"},
- tail = 1,
- tail_texture = "fqp.png",
- tail_size = 10,
- glow = 5,
- expire = 0.1,
- --[[
- hit_player = function(self, player)
- player:punch(self.object, 1.0, {
- full_punch_interval = 1.0,
- damage_groups = {fleshy = 8},
- }, nil)
- end,
- hit_mob = function(self, player)
- player:punch(self.object,1.0, {
- full_punch_interval = 1.0,
- damage_groups = {fleshy = 8},
- }, nil)
- end,
- --]]
-
- -- ao invés da causa dano elas alta monstros
- hit_node = function(self, pos, oldnode ,node)
- minetest.add_entity ( pos , "frozenskulls:frozenskulls")
- end
- })
- mobs:register_egg("frostyqueen:frostyqueen", "frostyqueen", "eggsfrostyqueen.png", 1)
- core.register_alias("frostyqueen:frostyqueen", "spawneggs:frostyqueen")
- mobs:alias_mob("frostyqueen:frostyqueen", "mobs:frostyqueen") -- compatibility
|