Герхард PICCORO Lenz McKAY
19d207f8e4
* fix missing coloms and brackleds in follow and drops of mobs * change name of mod to mobs_doomed in all files * an older definition still references to nyancat so make a symlink
76 lines
1.7 KiB
Lua
76 lines
1.7 KiB
Lua
local gdragon_base = {
|
|
type = "monster",
|
|
passive = false,
|
|
attacks_monsters = false,
|
|
damage = 5,
|
|
reach = 4,
|
|
attack_type = "dogshoot",
|
|
shoot_interval = 2.5,
|
|
dogshoot_switch = 2,
|
|
dogshoot_count = 0,
|
|
dogshoot_count_max =5,
|
|
arrow = "mobs_doomed:lightning",
|
|
shoot_offset = 1,
|
|
hp_min = 150,
|
|
hp_max = 250,
|
|
armor = 220,
|
|
collisionbox = {-0.6, -1.4, -0.6, 0.6, 0.6, 0.6},
|
|
visual = "mesh",
|
|
mesh = "dragon.b3d",
|
|
textures = {
|
|
{"dmobs_dragon_great.png"},
|
|
},
|
|
blood_texture = "mobs_blood.png",
|
|
visual_size = {x=2.5, y=2.5},
|
|
makes_footstep_sound = true,
|
|
runaway = false,
|
|
jump_chance = 30,
|
|
walk_chance = 80,
|
|
fall_speed = 0,
|
|
pathfinding = true,
|
|
fall_damage = 0,
|
|
sounds = {
|
|
shoot_attack = "mobs_fireball",
|
|
random = "roar",
|
|
},
|
|
walk_velocity = 3,
|
|
run_velocity = 5,
|
|
jump = true,
|
|
fly = true,
|
|
fly_in = {"air","default:water_source","default:water_flowing", "default:lava_source","default:lava_flowing"},
|
|
drops = {
|
|
{name = "mobs_doomed:dragon_egg_great", chance = 1, min = 1, max = 1},
|
|
},
|
|
fall_speed = 0,
|
|
stepheight = 10,
|
|
water_damage = 2,
|
|
lava_damage = 0,
|
|
fire_damage = 0,
|
|
light_damage = 0,
|
|
view_range = 20,
|
|
animation = {
|
|
speed_normal = 10,
|
|
speed_run = 20,
|
|
walk_start = 1,
|
|
walk_end = 22,
|
|
stand_start = 1,
|
|
stand_end = 22,
|
|
run_start = 1,
|
|
run_end = 22,
|
|
punch_start = 22,
|
|
punch_end = 47,
|
|
},
|
|
knock_back = 2,
|
|
}
|
|
|
|
mobs:register_mob("mobs_doomed:dragon_great", mobs_doomed.deepclone(gdragon_base) )
|
|
|
|
gdragon_base.type = "npc"
|
|
gdragon_base.attacks_monsters = true
|
|
|
|
gdragon_base.on_rightclick = mobs_doomed.dragon.ride
|
|
|
|
gdragon_base.do_custom = mobs_doomed.dragon.do_custom
|
|
|
|
mobs:register_mob("mobs_doomed:dragon_great_tame", mobs_doomed.deepclone(gdragon_base) )
|