adjust armor, hp, velocity, spawns for regular dragons
This commit is contained in:
parent
249d999335
commit
1cf6c33c81
121
dragon.lua
121
dragon.lua
@ -76,8 +76,8 @@ mobs:register_mob("illuna:dragon", {
|
|||||||
type = "monster",
|
type = "monster",
|
||||||
passive = false,
|
passive = false,
|
||||||
attacks_monsters = true,
|
attacks_monsters = true,
|
||||||
damage = 4,
|
damage = 22,
|
||||||
reach = 3,
|
reach = 6,
|
||||||
attack_type = "dogshoot",
|
attack_type = "dogshoot",
|
||||||
shoot_interval = 2.5,
|
shoot_interval = 2.5,
|
||||||
dogshoot_switch = 2,
|
dogshoot_switch = 2,
|
||||||
@ -85,10 +85,10 @@ mobs:register_mob("illuna:dragon", {
|
|||||||
dogshoot_count_max =5,
|
dogshoot_count_max =5,
|
||||||
arrow = "illuna:fire",
|
arrow = "illuna:fire",
|
||||||
shoot_offset = 1,
|
shoot_offset = 1,
|
||||||
hp_min = 70,
|
hp_min = 280,
|
||||||
hp_max = 100,
|
hp_max = 360,
|
||||||
armor = 100,
|
armor = 400,
|
||||||
collisionbox = {-0.6, -1.2, -0.6, 0.6, 0.6, 0.6},
|
collisionbox = {-0.6, -1.2, -0.6, 0.6, 0.6, 0.6},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "dragon.b3d",
|
mesh = "dragon.b3d",
|
||||||
textures = {
|
textures = {
|
||||||
@ -101,14 +101,14 @@ mobs:register_mob("illuna:dragon", {
|
|||||||
jump_chance = 30,
|
jump_chance = 30,
|
||||||
walk_chance = 80,
|
walk_chance = 80,
|
||||||
fall_speed = 0,
|
fall_speed = 0,
|
||||||
follow = {"illuna:dragon_gem"},
|
--follow = {"illuna:dragon_gem"},
|
||||||
pathfinding = true,
|
pathfinding = true,
|
||||||
fall_damage = 0,
|
fall_damage = 0,
|
||||||
sounds = {
|
sounds = {
|
||||||
shoot_attack = "mobs_fireball",
|
shoot_attack = "mobs_fireball",
|
||||||
},
|
},
|
||||||
walk_velocity = 3,
|
walk_velocity = 6,
|
||||||
run_velocity = 5,
|
run_velocity = 11,
|
||||||
jump = true,
|
jump = true,
|
||||||
fly = true,
|
fly = true,
|
||||||
drops = {
|
drops = {
|
||||||
@ -142,8 +142,8 @@ mobs:register_mob("illuna:dragon2", {
|
|||||||
type = "monster",
|
type = "monster",
|
||||||
passive = false,
|
passive = false,
|
||||||
attacks_monsters = true,
|
attacks_monsters = true,
|
||||||
damage = 4,
|
damage = 26,
|
||||||
reach = 3,
|
reach = 18,
|
||||||
attack_type = "dogshoot",
|
attack_type = "dogshoot",
|
||||||
shoot_interval = 2.5,
|
shoot_interval = 2.5,
|
||||||
dogshoot_switch = 2,
|
dogshoot_switch = 2,
|
||||||
@ -151,9 +151,9 @@ mobs:register_mob("illuna:dragon2", {
|
|||||||
dogshoot_count_max =5,
|
dogshoot_count_max =5,
|
||||||
arrow = "illuna:lightning",
|
arrow = "illuna:lightning",
|
||||||
shoot_offset = 1,
|
shoot_offset = 1,
|
||||||
hp_min = 70,
|
hp_min = 310,
|
||||||
hp_max = 100,
|
hp_max = 410,
|
||||||
armor = 100,
|
armor = 350,
|
||||||
collisionbox = {-0.6, -1.2, -0.6, 0.6, 0.6, 0.6},
|
collisionbox = {-0.6, -1.2, -0.6, 0.6, 0.6, 0.6},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "dragon.b3d",
|
mesh = "dragon.b3d",
|
||||||
@ -173,8 +173,8 @@ mobs:register_mob("illuna:dragon2", {
|
|||||||
sounds = {
|
sounds = {
|
||||||
shoot_attack = "mobs_fireball",
|
shoot_attack = "mobs_fireball",
|
||||||
},
|
},
|
||||||
walk_velocity = 3,
|
walk_velocity = 8,
|
||||||
run_velocity = 5,
|
run_velocity = 14,
|
||||||
jump = true,
|
jump = true,
|
||||||
fly = true,
|
fly = true,
|
||||||
drops = {
|
drops = {
|
||||||
@ -207,8 +207,8 @@ mobs:register_mob("illuna:dragon3", {
|
|||||||
type = "monster",
|
type = "monster",
|
||||||
passive = false,
|
passive = false,
|
||||||
attacks_monsters = true,
|
attacks_monsters = true,
|
||||||
damage = 4,
|
damage = 18,
|
||||||
reach = 3,
|
reach = 5,
|
||||||
attack_type = "dogshoot",
|
attack_type = "dogshoot",
|
||||||
shoot_interval = 2.5,
|
shoot_interval = 2.5,
|
||||||
dogshoot_switch = 2,
|
dogshoot_switch = 2,
|
||||||
@ -216,8 +216,8 @@ mobs:register_mob("illuna:dragon3", {
|
|||||||
dogshoot_count_max =5,
|
dogshoot_count_max =5,
|
||||||
arrow = "illuna:poison",
|
arrow = "illuna:poison",
|
||||||
shoot_offset = 1,
|
shoot_offset = 1,
|
||||||
hp_min = 70,
|
hp_min = 270,
|
||||||
hp_max = 100,
|
hp_max = 340,
|
||||||
armor = 100,
|
armor = 100,
|
||||||
collisionbox = {-0.6, -1.2, -0.6, 0.6, 0.6, 0.6},
|
collisionbox = {-0.6, -1.2, -0.6, 0.6, 0.6, 0.6},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
@ -238,8 +238,8 @@ mobs:register_mob("illuna:dragon3", {
|
|||||||
sounds = {
|
sounds = {
|
||||||
shoot_attack = "mobs_fireball",
|
shoot_attack = "mobs_fireball",
|
||||||
},
|
},
|
||||||
walk_velocity = 3,
|
walk_velocity = 6,
|
||||||
run_velocity = 5,
|
run_velocity = 10,
|
||||||
jump = true,
|
jump = true,
|
||||||
fly = true,
|
fly = true,
|
||||||
drops = {
|
drops = {
|
||||||
@ -272,8 +272,8 @@ mobs:register_mob("illuna:dragon4", {
|
|||||||
type = "monster",
|
type = "monster",
|
||||||
passive = false,
|
passive = false,
|
||||||
attacks_monsters = true,
|
attacks_monsters = true,
|
||||||
damage = 4,
|
damage = 32,
|
||||||
reach = 3,
|
reach = 7,
|
||||||
attack_type = "dogshoot",
|
attack_type = "dogshoot",
|
||||||
shoot_interval = 2.5,
|
shoot_interval = 2.5,
|
||||||
dogshoot_switch = 2,
|
dogshoot_switch = 2,
|
||||||
@ -281,9 +281,9 @@ mobs:register_mob("illuna:dragon4", {
|
|||||||
dogshoot_count_max =5,
|
dogshoot_count_max =5,
|
||||||
arrow = "illuna:ice",
|
arrow = "illuna:ice",
|
||||||
shoot_offset = 1,
|
shoot_offset = 1,
|
||||||
hp_min = 70,
|
hp_min = 360,
|
||||||
hp_max = 100,
|
hp_max = 520,
|
||||||
armor = 100,
|
armor = 800,
|
||||||
collisionbox = {-0.6, -1.2, -0.6, 0.6, 0.6, 0.6},
|
collisionbox = {-0.6, -1.2, -0.6, 0.6, 0.6, 0.6},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "dragon.b3d",
|
mesh = "dragon.b3d",
|
||||||
@ -303,8 +303,8 @@ mobs:register_mob("illuna:dragon4", {
|
|||||||
sounds = {
|
sounds = {
|
||||||
shoot_attack = "mobs_fireball",
|
shoot_attack = "mobs_fireball",
|
||||||
},
|
},
|
||||||
walk_velocity = 3,
|
walk_velocity = 11,
|
||||||
run_velocity = 5,
|
run_velocity = 18,
|
||||||
jump = true,
|
jump = true,
|
||||||
fly = true,
|
fly = true,
|
||||||
drops = {
|
drops = {
|
||||||
@ -338,8 +338,8 @@ mobs:register_mob("illuna:dragon_red", {
|
|||||||
type = "npc",
|
type = "npc",
|
||||||
passive = false,
|
passive = false,
|
||||||
attacks_monsters = true,
|
attacks_monsters = true,
|
||||||
damage = 4,
|
damage = 22,
|
||||||
reach = 3,
|
reach = 8,
|
||||||
attack_type = "dogshoot",
|
attack_type = "dogshoot",
|
||||||
shoot_interval = 2.5,
|
shoot_interval = 2.5,
|
||||||
dogshoot_switch = 2,
|
dogshoot_switch = 2,
|
||||||
@ -347,9 +347,9 @@ mobs:register_mob("illuna:dragon_red", {
|
|||||||
dogshoot_count_max =5,
|
dogshoot_count_max =5,
|
||||||
arrow = "illuna:fire",
|
arrow = "illuna:fire",
|
||||||
shoot_offset = 1,
|
shoot_offset = 1,
|
||||||
hp_min = 80,
|
hp_min = 380,
|
||||||
hp_max = 100,
|
hp_max = 500,
|
||||||
armor = 100,
|
armor = 400,
|
||||||
collisionbox = {-0.6, -0.9, -0.6, 0.6, 0.6, 0.6},
|
collisionbox = {-0.6, -0.9, -0.6, 0.6, 0.6, 0.6},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "dragon.b3d",
|
mesh = "dragon.b3d",
|
||||||
@ -372,8 +372,8 @@ mobs:register_mob("illuna:dragon_red", {
|
|||||||
sounds = {
|
sounds = {
|
||||||
shoot_attack = "mobs_fireball",
|
shoot_attack = "mobs_fireball",
|
||||||
},
|
},
|
||||||
walk_velocity = 3,
|
walk_velocity = 8,
|
||||||
run_velocity = 5,
|
run_velocity = 16,
|
||||||
jump = true,
|
jump = true,
|
||||||
fly = true,
|
fly = true,
|
||||||
drops = {
|
drops = {
|
||||||
@ -429,8 +429,8 @@ mobs:register_mob("illuna:dragon_black", {
|
|||||||
type = "npc",
|
type = "npc",
|
||||||
passive = false,
|
passive = false,
|
||||||
attacks_monsters = true,
|
attacks_monsters = true,
|
||||||
damage = 4,
|
damage = 32,
|
||||||
reach = 3,
|
reach = 8,
|
||||||
attack_type = "dogshoot",
|
attack_type = "dogshoot",
|
||||||
shoot_interval = 2.5,
|
shoot_interval = 2.5,
|
||||||
dogshoot_switch = 2,
|
dogshoot_switch = 2,
|
||||||
@ -438,9 +438,9 @@ mobs:register_mob("illuna:dragon_black", {
|
|||||||
dogshoot_count_max =5,
|
dogshoot_count_max =5,
|
||||||
arrow = "illuna:lightning",
|
arrow = "illuna:lightning",
|
||||||
shoot_offset = 1,
|
shoot_offset = 1,
|
||||||
hp_min = 80,
|
hp_min = 480,
|
||||||
hp_max = 100,
|
hp_max = 560,
|
||||||
armor = 100,
|
armor = 480,
|
||||||
collisionbox = {-0.6, -0.9, -0.6, 0.6, 0.6, 0.6},
|
collisionbox = {-0.6, -0.9, -0.6, 0.6, 0.6, 0.6},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "dragon.b3d",
|
mesh = "dragon.b3d",
|
||||||
@ -463,8 +463,8 @@ mobs:register_mob("illuna:dragon_black", {
|
|||||||
sounds = {
|
sounds = {
|
||||||
shoot_attack = "mobs_fireball",
|
shoot_attack = "mobs_fireball",
|
||||||
},
|
},
|
||||||
walk_velocity = 3,
|
walk_velocity = 22,
|
||||||
run_velocity = 5,
|
run_velocity = 30,
|
||||||
jump = true,
|
jump = true,
|
||||||
fly = true,
|
fly = true,
|
||||||
drops = {
|
drops = {
|
||||||
@ -520,8 +520,8 @@ mobs:register_mob("illuna:dragon_green", {
|
|||||||
type = "npc",
|
type = "npc",
|
||||||
passive = false,
|
passive = false,
|
||||||
attacks_monsters = true,
|
attacks_monsters = true,
|
||||||
damage = 4,
|
damage = 14,
|
||||||
reach = 3,
|
reach = 7,
|
||||||
attack_type = "dogshoot",
|
attack_type = "dogshoot",
|
||||||
shoot_interval = 2.5,
|
shoot_interval = 2.5,
|
||||||
dogshoot_switch = 2,
|
dogshoot_switch = 2,
|
||||||
@ -529,9 +529,9 @@ mobs:register_mob("illuna:dragon_green", {
|
|||||||
dogshoot_count_max =5,
|
dogshoot_count_max =5,
|
||||||
arrow = "illuna:poison",
|
arrow = "illuna:poison",
|
||||||
shoot_offset = 1,
|
shoot_offset = 1,
|
||||||
hp_min = 80,
|
hp_min = 480,
|
||||||
hp_max = 100,
|
hp_max = 520,
|
||||||
armor = 100,
|
armor = 600,
|
||||||
collisionbox = {-0.6, -0.9, -0.6, 0.6, 0.6, 0.6},
|
collisionbox = {-0.6, -0.9, -0.6, 0.6, 0.6, 0.6},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "dragon.b3d",
|
mesh = "dragon.b3d",
|
||||||
@ -554,8 +554,8 @@ mobs:register_mob("illuna:dragon_green", {
|
|||||||
sounds = {
|
sounds = {
|
||||||
shoot_attack = "mobs_fireball",
|
shoot_attack = "mobs_fireball",
|
||||||
},
|
},
|
||||||
walk_velocity = 3,
|
walk_velocity = 6,
|
||||||
run_velocity = 5,
|
run_velocity = 16,
|
||||||
jump = true,
|
jump = true,
|
||||||
fly = true,
|
fly = true,
|
||||||
drops = {
|
drops = {
|
||||||
@ -611,8 +611,8 @@ mobs:register_mob("illuna:dragon_blue", {
|
|||||||
type = "npc",
|
type = "npc",
|
||||||
passive = false,
|
passive = false,
|
||||||
attacks_monsters = true,
|
attacks_monsters = true,
|
||||||
damage = 4,
|
damage = 14,
|
||||||
reach = 3,
|
reach = 24,
|
||||||
attack_type = "dogshoot",
|
attack_type = "dogshoot",
|
||||||
shoot_interval = 2.5,
|
shoot_interval = 2.5,
|
||||||
dogshoot_switch = 2,
|
dogshoot_switch = 2,
|
||||||
@ -620,8 +620,8 @@ mobs:register_mob("illuna:dragon_blue", {
|
|||||||
dogshoot_count_max =5,
|
dogshoot_count_max =5,
|
||||||
arrow = "illuna:ice",
|
arrow = "illuna:ice",
|
||||||
shoot_offset = 1,
|
shoot_offset = 1,
|
||||||
hp_min = 80,
|
hp_min = 380,
|
||||||
hp_max = 100,
|
hp_max = 400,
|
||||||
armor = 100,
|
armor = 100,
|
||||||
collisionbox = {-0.6, -0.9, -0.6, 0.6, 0.6, 0.6},
|
collisionbox = {-0.6, -0.9, -0.6, 0.6, 0.6, 0.6},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
@ -645,8 +645,8 @@ mobs:register_mob("illuna:dragon_blue", {
|
|||||||
sounds = {
|
sounds = {
|
||||||
shoot_attack = "mobs_fireball",
|
shoot_attack = "mobs_fireball",
|
||||||
},
|
},
|
||||||
walk_velocity = 3,
|
walk_velocity = 7,
|
||||||
run_velocity = 5,
|
run_velocity = 16,
|
||||||
jump = true,
|
jump = true,
|
||||||
fly = true,
|
fly = true,
|
||||||
drops = {
|
drops = {
|
||||||
@ -734,10 +734,10 @@ minetest.register_node("illuna:egg", {
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
local which_dragon
|
local which_dragon
|
||||||
if name1 == "default:lava_source" then which_dragon = "red"
|
if name1 == "caverealms:glow_ruby" then which_dragon = "red"
|
||||||
elseif name1 == "default:obsidian" then which_dragon = "black"
|
elseif name1 == "caverealms:glow_mese" then which_dragon = "black"
|
||||||
elseif name1 == "default:cactus" then which_dragon = "green"
|
elseif name1 == "caverealms:glow_emerald" then which_dragon = "green"
|
||||||
elseif name1 == "default:ice" then which_dragon = "blue"
|
elseif name1 == "caverealms:thin_ice" then which_dragon = "blue"
|
||||||
end
|
end
|
||||||
minetest.after(100, function(pos, dragon, pname)
|
minetest.after(100, function(pos, dragon, pname)
|
||||||
if which_dragon == "red" then
|
if which_dragon == "red" then
|
||||||
@ -756,7 +756,6 @@ minetest.register_node("illuna:egg", {
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
minetest.register_node("illuna:dragon_egg_fire", {
|
minetest.register_node("illuna:dragon_egg_fire", {
|
||||||
description = "Dragon Egg",
|
description = "Dragon Egg",
|
||||||
drawtype = "mesh",
|
drawtype = "mesh",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user