adjust monster egg drops and follow

This commit is contained in:
Juraj Vajda 2017-07-29 16:41:47 +02:00
parent bb3fe09871
commit 6cc4f8d9eb
5 changed files with 24 additions and 11 deletions

View File

@ -13,7 +13,19 @@ for k, mob_mod in ipairs(ENABLED_MODS) do
-- disabled extra check for mobs redo due to incompatibility with Lua 5.1, this method is available from Lua 5.2
-- if mob_mod == "mobs" and not (mobs.mod == "redo") then goto continue end
table.insert(spawners_mobs.mob_tables, {name=mob.name, mod_prefix=mob_mod, egg_name_custom=mob.egg_name_custom, dummy_size=mob.dummy_size, dummy_offset=mob.dummy_offset, dummy_mesh=mob.dummy_mesh, dummy_texture=mob.dummy_texture, night_only=mob.night_only, sound_custom=mob.sound_custom})
table.insert(spawners_mobs.mob_tables,
{
name=mob.name,
mod_prefix=mob_mod,
egg_name_custom=mob.egg_name_custom,
dummy_size=mob.dummy_size,
dummy_offset=mob.dummy_offset,
dummy_mesh=mob.dummy_mesh,
dummy_texture=mob.dummy_texture,
night_only=mob.night_only,
sound_custom=mob.sound_custom
}
)
-- use custom egg or create a default egg
if mob.egg_name_custom ~= "" then
mob_egg = mob.egg_name_custom

View File

@ -37,13 +37,13 @@ local balrog_def = {
jump = true,
floats = 1,
drops = {
{name = "default:diamondblock", chance = 2, min = 1, max = 8},
{name = "default:diamondblock", chance = 2, min = 1, max = 8},
{name = "default:diamondblock", chance = 2, min = 1, max = 4},
{name = "default:diamondblock", chance = 2, min = 1, max = 4},
{name = "default:diamondblock", chance = 2, min = 1, max = 4},
{name = "default:diamondblock", chance = 2, min = 1, max = 4},
{name = "default:diamondblock", chance = 2, min = 1, max = 4},
{name = "default:diamond", chance = 2, min = 1, max = 4},
{name = "default:diamond", chance = 2, min = 1, max = 4},
{name = "default:diamond", chance = 2, min = 1, max = 8},
{name = "default:diamond", chance = 2, min = 1, max = 8},
{name = "default:diamond", chance = 2, min = 1, max = 4},
{name = "default:diamond", chance = 2, min = 1, max = 4},
{name = "default:diamond", chance = 2, min = 1, max = 4},

View File

@ -43,7 +43,7 @@ local bunny_evil_def = {
punch_start = 16,
punch_end = 24,
},
follow = {"mobs:lava_orb"},
-- follow = {"mobs:lava_orb"},
on_rightclick = function(self, clicker)
if mobs:feed_tame(self, clicker, 3, true, true) then

View File

@ -56,7 +56,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"},
-- 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,

View File

@ -34,10 +34,11 @@ local uruk_hai_def = {
jump = true,
floats = 1,
drops = {
{name = "default:apple", chance = 5, min = 1, max = 2},
{name = "default:wood", chance = 15, min = 1, max = 2},
{name = "default:stick", chance = 5, min = 1, max = 2},
{name = "default:torch", chance = 10, min = 1, max = 2},
{name = "default:apple", chance = 3, min = 1, max = 2},
{name = "default:wood", chance = 4, min = 1, max = 2},
{name = "default:stick", chance = 2, min = 1, max = 2},
{name = "default:torch", chance = 3, min = 1, max = 2},
{name = "spawners_mobs:uruk_hai", chance = 20, min = 1, max = 1},
},
water_damage = 0,
lava_damage = 0,