2016-04-15 16:00:45 +02:00
|
|
|
|
2016-06-11 12:03:00 +02:00
|
|
|
local S = mobs.intllib
|
|
|
|
|
2017-02-21 16:32:50 +01:00
|
|
|
|
2016-04-15 16:00:45 +02:00
|
|
|
-- Dungeon Master by PilzAdam
|
|
|
|
|
|
|
|
mobs:register_mob("mobs_monster:dungeon_master", {
|
|
|
|
type = "monster",
|
|
|
|
passive = false,
|
|
|
|
damage = 4,
|
|
|
|
attack_type = "dogshoot",
|
2016-05-12 12:42:30 +02:00
|
|
|
dogshoot_switch = 1,
|
2017-03-17 14:03:04 +01:00
|
|
|
dogshoot_count_max = 12, -- shoot for 10 seconds
|
2017-03-17 14:04:07 +01:00
|
|
|
dogshoot_count2_max = 3, -- dogfight for 3 seconds
|
2016-04-15 16:00:45 +02:00
|
|
|
reach = 3,
|
|
|
|
shoot_interval = 2.5,
|
|
|
|
arrow = "mobs_monster:fireball",
|
|
|
|
shoot_offset = 1,
|
|
|
|
hp_min = 12,
|
|
|
|
hp_max = 35,
|
|
|
|
armor = 60,
|
|
|
|
collisionbox = {-0.7, -1, -0.7, 0.7, 1.6, 0.7},
|
|
|
|
visual = "mesh",
|
|
|
|
mesh = "mobs_dungeon_master.b3d",
|
|
|
|
textures = {
|
|
|
|
{"mobs_dungeon_master.png"},
|
|
|
|
{"mobs_dungeon_master2.png"},
|
|
|
|
{"mobs_dungeon_master3.png"},
|
|
|
|
},
|
|
|
|
makes_footstep_sound = true,
|
|
|
|
sounds = {
|
|
|
|
random = "mobs_dungeonmaster",
|
|
|
|
shoot_attack = "mobs_fireball",
|
|
|
|
},
|
|
|
|
walk_velocity = 1,
|
|
|
|
run_velocity = 3,
|
|
|
|
jump = true,
|
|
|
|
view_range = 15,
|
|
|
|
drops = {
|
2018-07-13 20:11:40 +02:00
|
|
|
{name = "default:mese_crystal_fragment", chance = 1, min = 0, max = 2},
|
2018-07-18 16:41:48 +02:00
|
|
|
{name = "mobs:leather", chance = 2, min = 0, max = 2},
|
|
|
|
{name = "default:mese_crystal", chance = 3, min = 0, max = 2},
|
2018-07-13 20:11:40 +02:00
|
|
|
{name = "default:diamond", chance = 4, min = 0, max = 1},
|
|
|
|
{name = "default:diamondblock", chance = 30, min = 0, max = 1},
|
2016-04-15 16:00:45 +02:00
|
|
|
},
|
|
|
|
water_damage = 1,
|
|
|
|
lava_damage = 1,
|
|
|
|
light_damage = 0,
|
|
|
|
fear_height = 3,
|
|
|
|
animation = {
|
|
|
|
stand_start = 0,
|
|
|
|
stand_end = 19,
|
|
|
|
walk_start = 20,
|
|
|
|
walk_end = 35,
|
|
|
|
punch_start = 36,
|
|
|
|
punch_end = 48,
|
2016-05-12 12:42:30 +02:00
|
|
|
shoot_start = 36,
|
|
|
|
shoot_end = 48,
|
2016-04-15 16:00:45 +02:00
|
|
|
speed_normal = 15,
|
|
|
|
speed_run = 15,
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2017-02-21 16:32:50 +01:00
|
|
|
|
2016-10-29 17:48:04 +02:00
|
|
|
mobs:spawn({
|
|
|
|
name = "mobs_monster:dungeon_master",
|
|
|
|
nodes = {"default:stone"},
|
2018-01-12 15:55:25 +01:00
|
|
|
max_light = 5,
|
|
|
|
chance = 9000,
|
2016-10-29 17:48:04 +02:00
|
|
|
active_object_count = 1,
|
|
|
|
max_height = -70,
|
|
|
|
})
|
2016-04-15 16:00:45 +02:00
|
|
|
|
2017-02-21 16:32:50 +01:00
|
|
|
|
2016-06-11 12:03:00 +02:00
|
|
|
mobs:register_egg("mobs_monster:dungeon_master", S("Dungeon Master"), "fire_basic_flame.png", 1, true)
|
2016-04-15 16:00:45 +02:00
|
|
|
|
2017-02-21 16:32:50 +01:00
|
|
|
|
|
|
|
mobs:alias_mob("mobs:dungeon_master", "mobs_monster:dungeon_master") -- compatibility
|
|
|
|
|
2016-04-15 16:00:45 +02:00
|
|
|
|
|
|
|
-- fireball (weapon)
|
|
|
|
mobs:register_arrow("mobs_monster:fireball", {
|
|
|
|
visual = "sprite",
|
|
|
|
visual_size = {x = 1, y = 1},
|
|
|
|
textures = {"mobs_fireball.png"},
|
|
|
|
velocity = 6,
|
2017-01-20 10:29:41 +01:00
|
|
|
tail = 1,
|
|
|
|
tail_texture = "mobs_fireball.png",
|
|
|
|
tail_size = 10,
|
|
|
|
glow = 5,
|
|
|
|
expire = 0.1,
|
2016-04-15 16:00:45 +02:00
|
|
|
|
|
|
|
-- direct hit, no fire... just plenty of pain
|
|
|
|
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,
|
|
|
|
|
2018-01-12 15:55:25 +01:00
|
|
|
-- node hit
|
2016-04-15 16:00:45 +02:00
|
|
|
hit_node = function(self, pos, node)
|
2018-01-12 15:55:25 +01:00
|
|
|
mobs:boom(self, pos, 1)
|
2016-04-15 16:00:45 +02:00
|
|
|
end
|
|
|
|
})
|
2018-01-12 15:55:25 +01:00
|
|
|
|
|
|
|
--minetest.override_item("default:obsidian", {on_blast = function() end})
|