add bone drops to pumpking,sandworm,senderman,yeti,zombie
replace random spawn with regular spawnrule for minizombiemaster
parent
054236b1e9
commit
a6740a8dfe
|
@ -38,7 +38,8 @@ if mobs.mod and mobs.mod == "redo" then
|
|||
view_range = 25,
|
||||
stepheight = 1.1,
|
||||
drops = {
|
||||
{name = "farming:jackolantern", chance = 1, min = 1, max = 1}
|
||||
{name = "farming:jackolantern", chance = 1, min = 1, max = 1},
|
||||
{name = "ethereal:bone", chance = 2, min = 2, max = 4}
|
||||
},
|
||||
lifetimer = 180, -- 3 minutes
|
||||
shoot_interval = 135, -- (lifetimer - (lifetimer / 4)), borrowed for do_custom timer
|
||||
|
|
|
@ -41,7 +41,8 @@ if mobs.mod and mobs.mod == "redo" then
|
|||
stepheight = 1.1,
|
||||
drops = {
|
||||
{name = "mobs_sandworm:wormflesh_raw", chance = 2, min = 1, max = 5},
|
||||
{name = "mobs_sandworm:spice", chance = 2, min = 1, max = 1}
|
||||
{name = "mobs_sandworm:spice", chance = 2, min = 1, max = 1},
|
||||
{name = "ethereal:bone", chance = 2, min = 2, max = 4}
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
@ -29,7 +29,8 @@ if mobs.mod and mobs.mod == "redo" then
|
|||
run_velocity = 6,
|
||||
stepheight = 1.1,
|
||||
drops = {
|
||||
{name = "default:diamond", chance = 1, min = 1, max = 2,}
|
||||
{name = "default:diamond", chance = 1, min = 1, max = 1},
|
||||
{name = "ethereal:bone", chance = 2, min = 2, max = 6}
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
@ -42,7 +42,8 @@ if mobs.mod and mobs.mod == "redo" then
|
|||
stepheight = 1.1,
|
||||
floats = 0,
|
||||
drops = {
|
||||
{name = "default:ice", chance = 1, min = 1, max = 3,}
|
||||
{name = "default:ice", chance = 1, min = 1, max = 3},
|
||||
{name = "ethereal:bone", chance = 2, min = 2, max = 4}
|
||||
},
|
||||
replace_rate = 50,
|
||||
replace_what = {"air"},
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
|
||||
if mobs.mod and mobs.mod == "redo" then
|
||||
|
||||
local ENABLE_MINI_ZOMBIE = true
|
||||
|
||||
-- zombie
|
||||
mobs:register_mob("mobs_zombie:zombie", {
|
||||
type = "monster",
|
||||
|
@ -42,18 +39,11 @@ if mobs.mod and mobs.mod == "redo" then
|
|||
run_velocity = 0.5,
|
||||
jump = false,
|
||||
drops = {
|
||||
{name = "mobs_zombie:rotten_flesh", chance = 1, min = 1, max = 3,}
|
||||
{name = "mobs_zombie:rotten_flesh", chance = 1, min = 1, max = 3},
|
||||
{name = "ethereal:bone", chance = 2, min = 2, max = 4}
|
||||
},
|
||||
lifetimer = 180, -- 3 minutes
|
||||
shoot_interval = 135, -- (lifetimer - (lifetimer / 4)), borrowed for do_custom timer
|
||||
do_custom = function(self)
|
||||
if ENABLE_MINI_ZOMBIE and self.lifetimer <= self.shoot_interval then
|
||||
if math.random(100) <= 50 then
|
||||
minetest.add_entity(self.object:getpos(), "mobs_zombie:zombie_mini")
|
||||
end
|
||||
self.shoot_interval = self.shoot_interval - 45
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
--name, nodes, neighbors, min_light, max_light, interval, chance, active_object_count, min_height, max_height
|
||||
|
@ -62,6 +52,11 @@ if mobs.mod and mobs.mod == "redo" then
|
|||
{"air"},
|
||||
-1, 7, 30, 10000, 2, -31000, 31000
|
||||
)
|
||||
mobs:spawn_specific("mobs_zombie:zombie_mini",
|
||||
{"default:stone", "default:dirt_with_grass"},
|
||||
{"air"},
|
||||
-1, 7, 30, 10000, 2, -31000, 31000
|
||||
)
|
||||
mobs:register_egg("mobs_zombie:zombie", "Zombie", "zombie_head.png", 0)
|
||||
|
||||
-- mini zombie
|
||||
|
|
Loading…
Reference in New Issue