2017-05-23 00:35:56 -04:00
|
|
|
-- v1.4
|
2017-05-22 22:27:00 -04:00
|
|
|
|
|
|
|
--###################
|
2017-05-23 00:35:56 -04:00
|
|
|
--################### GUARDIAN
|
2017-05-22 22:27:00 -04:00
|
|
|
--###################
|
|
|
|
|
2017-05-23 00:35:56 -04:00
|
|
|
mobs:register_mob("mobs_mc:guardian_elder", {
|
2017-06-29 22:01:05 +02:00
|
|
|
type = "monster",
|
2017-06-14 19:47:33 -04:00
|
|
|
hp_min = 80,
|
|
|
|
hp_max = 80,
|
2017-05-22 22:27:00 -04:00
|
|
|
passive = false,
|
|
|
|
attack_type = "dogfight",
|
2017-06-29 22:01:05 +02:00
|
|
|
pathfinding = 1,
|
|
|
|
view_range = 16,
|
2017-05-22 22:27:00 -04:00
|
|
|
walk_velocity = 2,
|
|
|
|
run_velocity = 4,
|
2017-06-14 19:47:33 -04:00
|
|
|
damage = 8,
|
2017-06-29 22:01:05 +02:00
|
|
|
collisionbox = {-0.99875, 0.5, -0.99875, 0.99875, 2.4975, 0.99875},
|
2017-05-23 00:35:56 -04:00
|
|
|
visual = "mesh",
|
2017-06-27 00:32:05 +02:00
|
|
|
mesh = "mobs_mc_guardian.b3d",
|
2017-05-23 00:35:56 -04:00
|
|
|
textures = {
|
2017-06-27 15:15:00 +02:00
|
|
|
{"mobs_mc_guardian_elder.png"},
|
2017-05-23 00:35:56 -04:00
|
|
|
},
|
2017-06-29 22:01:05 +02:00
|
|
|
visual_size = {x=7, y=7},
|
|
|
|
sounds = {
|
2017-05-22 22:27:00 -04:00
|
|
|
damage = "mobs_mc_squid_hurt",
|
2017-06-29 22:01:05 +02:00
|
|
|
distance = 16,
|
2017-05-22 22:27:00 -04:00
|
|
|
},
|
2017-05-23 00:35:56 -04:00
|
|
|
animation = {
|
2017-06-29 22:01:05 +02:00
|
|
|
stand_speed = 25, walk_speed = 25, run_speed = 50,
|
2017-05-23 00:35:56 -04:00
|
|
|
stand_start = 0, stand_end = 20,
|
|
|
|
walk_start = 0, walk_end = 20,
|
|
|
|
run_start = 0, run_end = 20,
|
2017-05-22 22:27:00 -04:00
|
|
|
},
|
2017-06-29 22:01:05 +02:00
|
|
|
drops = {
|
2017-06-23 18:26:00 +02:00
|
|
|
-- TODO: Implement correct drops
|
|
|
|
{name = mobs_mc.items.black_dye,
|
2017-05-22 22:27:00 -04:00
|
|
|
chance = 1,
|
|
|
|
min = 1,
|
|
|
|
max = 3,},
|
|
|
|
},
|
2017-06-29 22:01:05 +02:00
|
|
|
fly = true,
|
|
|
|
fly_in = mobs_mc.items.water_source,
|
|
|
|
water_damage = 0,
|
|
|
|
lava_damage = 4,
|
|
|
|
light_damage = 0,
|
2017-06-29 22:17:26 +02:00
|
|
|
view_range = 16,
|
2017-06-30 00:28:51 +02:00
|
|
|
blood_amount = 0,
|
2017-05-22 22:27:00 -04:00
|
|
|
})
|
|
|
|
|
2017-06-24 18:56:24 +02:00
|
|
|
mobs:register_spawn("mobs_mc:guardian_elder", mobs_mc.spawn.water, minetest.LIGHT_MAX+1, 0, 5000, 2, -1000, true)
|
2017-05-22 22:27:00 -04:00
|
|
|
|
|
|
|
-- spawn eggs
|
2017-06-27 15:15:00 +02:00
|
|
|
mobs:register_egg("mobs_mc:guardian_elder", "Guardian Elder", "mobs_mc_spawn_icon_guardian_elder.png", 0)
|
2017-06-14 19:47:33 -04:00
|
|
|
|