Commit a6740a8d authored by Milan's avatar Milan
Browse files

add bone drops to pumpking,sandworm,senderman,yeti,zombie

replace random spawn with regular spawnrule for minizombie
parent 054236b1
...@@ -38,7 +38,8 @@ if mobs.mod and mobs.mod == "redo" then ...@@ -38,7 +38,8 @@ if mobs.mod and mobs.mod == "redo" then
view_range = 25, view_range = 25,
stepheight = 1.1, stepheight = 1.1,
drops = { 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 lifetimer = 180, -- 3 minutes
shoot_interval = 135, -- (lifetimer - (lifetimer / 4)), borrowed for do_custom timer shoot_interval = 135, -- (lifetimer - (lifetimer / 4)), borrowed for do_custom timer
......
...@@ -41,7 +41,8 @@ if mobs.mod and mobs.mod == "redo" then ...@@ -41,7 +41,8 @@ if mobs.mod and mobs.mod == "redo" then
stepheight = 1.1, stepheight = 1.1,
drops = { drops = {
{name = "mobs_sandworm:wormflesh_raw", chance = 2, min = 1, max = 5}, {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 ...@@ -29,7 +29,8 @@ if mobs.mod and mobs.mod == "redo" then
run_velocity = 6, run_velocity = 6,
stepheight = 1.1, stepheight = 1.1,
drops = { 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 ...@@ -42,7 +42,8 @@ if mobs.mod and mobs.mod == "redo" then
stepheight = 1.1, stepheight = 1.1,
floats = 0, floats = 0,
drops = { 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_rate = 50,
replace_what = {"air"}, replace_what = {"air"},
......
if mobs.mod and mobs.mod == "redo" then if mobs.mod and mobs.mod == "redo" then
local ENABLE_MINI_ZOMBIE = true
-- zombie -- zombie
mobs:register_mob("mobs_zombie:zombie", { mobs:register_mob("mobs_zombie:zombie", {
type = "monster", type = "monster",
...@@ -42,18 +39,11 @@ if mobs.mod and mobs.mod == "redo" then ...@@ -42,18 +39,11 @@ if mobs.mod and mobs.mod == "redo" then
run_velocity = 0.5, run_velocity = 0.5,
jump = false, jump = false,
drops = { 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 lifetimer = 180, -- 3 minutes
shoot_interval = 135, -- (lifetimer - (lifetimer / 4)), borrowed for do_custom timer 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 --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 ...@@ -62,6 +52,11 @@ if mobs.mod and mobs.mod == "redo" then
{"air"}, {"air"},
-1, 7, 30, 10000, 2, -31000, 31000 -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) mobs:register_egg("mobs_zombie:zombie", "Zombie", "zombie_head.png", 0)
-- mini zombie -- mini zombie
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment