tame mummy and evil bunny

master
Juraj Vajda 2016-12-03 19:29:27 +01:00
parent a5319a4b62
commit cd7ee9d149
2 changed files with 19 additions and 3 deletions

View File

@ -29,7 +29,6 @@ local bunny_evil_def = {
floats = 0,
drops = {
{name = "mobs:meat_raw", chance = 5, min = 1, max = 1},
{name = "spawners_mobs:bunny_evil", chance = 40, min = 1, max = 1},
},
water_damage = 3,
lava_damage = 4,
@ -43,7 +42,16 @@ local bunny_evil_def = {
walk_end = 24,
punch_start = 16,
punch_end = 24,
}
},
follow = {"mobs:lava_orb"},
on_rightclick = function(self, clicker)
if mobs:feed_tame(self, clicker, 3, true, true) then
return
end
mobs:capture_mob(self, clicker, 30, 50, 80, false, nil)
end,
}
mobs:register_mob("spawners_mobs:bunny_evil", bunny_evil_def)

View File

@ -38,7 +38,6 @@ local mummy_def = {
{name = "spawners_mobs:deco_stone_eye", chance = 25, min = 1, max = 1},
{name = "spawners_mobs:deco_stone_men", chance = 25, min = 1, max = 1},
{name = "spawners_mobs:deco_stone_sun", chance = 25, min = 1, max = 1},
{name = "spawners_mobs:mummy", chance = 40, min = 1, max = 1},
},
water_damage = 4,
lava_damage = 8,
@ -56,6 +55,7 @@ local mummy_def = {
punch_start = 74,
punch_end = 105,
},
follow = {"spawners_mobs:deco_stone_eye","spawners_mobs:deco_stone_men","spawners_mobs:deco_stone_sun"},
on_die = function(self, pos)
minetest.sound_play("spawners_mobs_mummy_death", {
object = self.object,
@ -63,6 +63,14 @@ local mummy_def = {
max_hear_distance = 10
})
end,
on_rightclick = function(self, clicker)
if mobs:feed_tame(self, clicker, 8, true, true) then
return
end
mobs:capture_mob(self, clicker, 30, 50, 80, false, nil)
end,
}
mobs:register_mob("spawners_mobs:mummy", mummy_def)