Multiple changes:
- Adjust giant tree spawns. - Remove dragon from dungeons. - Adjust all abms. - Allow giant trees to grow back damage. - Revamp ice trap. - Fix iron moonstone and coral teleporters.
This commit is contained in:
parent
fa86013731
commit
6c764f0c3b
11 changed files with 210 additions and 68 deletions
25
mobs.lua
25
mobs.lua
|
@ -11,7 +11,7 @@ fun_caves.search_replace = function(pos, search_rate, replace_what, replace_with
|
|||
if #nodelist > 0 then
|
||||
for _, new_pos in pairs(nodelist) do
|
||||
minetest.set_node(new_pos, {name = replace_with})
|
||||
return -- only one at a time
|
||||
return true -- only one at a time
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -179,6 +179,8 @@ if minetest.registered_entities["dmobs:fox"] then
|
|||
end
|
||||
end
|
||||
|
||||
minetest.registered_entities["dmobs:fox"].type = 'animal'
|
||||
|
||||
local m = table.copy(minetest.registered_entities["dmobs:fox"])
|
||||
m.name = 'fun_caves:fire_fox'
|
||||
m.damage = 3
|
||||
|
@ -255,6 +257,10 @@ if minetest.registered_entities["mobs:bee"] then
|
|||
return
|
||||
end
|
||||
|
||||
-- To keep bees from summoning infinitely, they lose health each round.
|
||||
self.health = self.health - 1
|
||||
check_for_death(self)
|
||||
|
||||
local prob = 10
|
||||
if self.name == 'fun_caves:killer_bee_queen' then
|
||||
prob = 4
|
||||
|
@ -286,7 +292,9 @@ if minetest.registered_entities["mobs:bee"] then
|
|||
pos.y = pos.y + 1
|
||||
|
||||
if self.name == 'fun_caves:killer_bee' then
|
||||
fun_caves.search_replace(pos, 10, {'group:tree', 'fun_caves:glowing_fungal_wood',}, 'air')
|
||||
fun_caves.search_replace(pos, 5, {'group:tree', 'fun_caves:glowing_fungal_wood',}, 'air')
|
||||
else
|
||||
fun_caves.search_replace(pos, 25, {'group:tree', 'fun_caves:glowing_fungal_wood',}, 'air')
|
||||
end
|
||||
fun_caves.search_replace(pos, 10, {"fun_caves:tree"}, "fun_caves:glowing_fungal_wood")
|
||||
fun_caves.search_replace(pos, 60, {"fun_caves:glowing_fungal_wood", 'fun_caves:sap'}, "air")
|
||||
|
@ -346,8 +354,8 @@ if minetest.registered_entities["mobs:bee"] then
|
|||
})
|
||||
|
||||
|
||||
mobs:register_spawn("fun_caves:killer_bee", {"fun_caves:tree", "fun_caves:ironwood", "fun_caves:diamondwood"}, 20, -1, 300, 5, 31000)
|
||||
mobs:register_spawn("fun_caves:killer_bee", {"fun_caves:glowing_fungal_wood"}, 20, -1, 100, 5, 31000)
|
||||
mobs:register_spawn("fun_caves:killer_bee", {"fun_caves:tree", "fun_caves:ironwood", "fun_caves:diamondwood"}, 20, -1, 2000, 5, 31000)
|
||||
mobs:register_spawn("fun_caves:killer_bee", {"fun_caves:glowing_fungal_wood"}, 20, -1, 150, 5, 31000)
|
||||
mobs:register_egg("fun_caves:killer_bee", "Killer Bee", "mobs_bee_inv.png", 1)
|
||||
|
||||
|
||||
|
@ -362,7 +370,7 @@ if minetest.registered_entities["mobs:bee"] then
|
|||
minetest.registered_entities["fun_caves:killer_bee_drone"] = m
|
||||
mobs.spawning_mobs["fun_caves:killer_bee_drone"] = true
|
||||
|
||||
mobs:register_spawn("fun_caves:killer_bee_drone", {"fun_caves:tree", "fun_caves:ironwood", "fun_caves:diamondwood"}, 20, -1, 1000, 5, 31000)
|
||||
mobs:register_spawn("fun_caves:killer_bee_drone", {"fun_caves:glowing_fungal_wood"}, 20, -1, 300, 3, 31000)
|
||||
|
||||
m = table.copy(minetest.registered_entities["fun_caves:killer_bee"])
|
||||
m.name = 'fun_caves:killer_bee_queen'
|
||||
|
@ -375,7 +383,7 @@ if minetest.registered_entities["mobs:bee"] then
|
|||
minetest.registered_entities["fun_caves:killer_bee_queen"] = m
|
||||
mobs.spawning_mobs["fun_caves:killer_bee_queen"] = true
|
||||
|
||||
mobs:register_spawn("fun_caves:killer_bee_queen", {"fun_caves:tree", "fun_caves:ironwood", "fun_caves:diamondwood"}, 20, -1, 4000, 5, 31000)
|
||||
mobs:register_spawn("fun_caves:killer_bee_queen", {"fun_caves:glowing_fungal_wood"}, 20, -1, 600, 1, 31000)
|
||||
end
|
||||
|
||||
if minetest.registered_entities["kpgmobs:wolf"] then
|
||||
|
@ -415,8 +423,8 @@ end
|
|||
|
||||
if minetest.registered_entities["mobs_fish:clownfish"] then
|
||||
--local l_spawn_near = {"default:sand","default:dirt","group:seaplants","group:seacoral"}
|
||||
mobs:spawn_specific("mobs_fish:clownfish", {"default:water_source", "default:water_flowing"}, {"default:sand","default:dirt", "fun_caves:cloud", "fun_caves:storm_cloud","group:seaplants","group:seacoral"}, 5, 20, 30, 10000, 1, 4000, 5000)
|
||||
mobs:spawn_specific("mobs_fish:tropical", {"default:water_source", "default:water_flowing"}, {"default:sand","default:dirt", "fun_caves:cloud", "fun_caves:storm_cloud","group:seaplants","group:seacoral"}, 5, 20, 30, 10000, 1, 4000, 5000)
|
||||
mobs:spawn_specific("mobs_fish:clownfish", {"default:water_source", "default:water_flowing"}, {'fun_caves:water_plant_1_water_cloud', 'fun_caves:water_plant_1_water_storm_cloud'}, 5, 20, 30, 10000, 1, 4000, 5000)
|
||||
mobs:spawn_specific("mobs_fish:tropical", {"default:water_source", "default:water_flowing"}, {'fun_caves:water_plant_1_water_cloud', 'fun_caves:water_plant_1_water_storm_cloud'}, 5, 20, 30, 10000, 1, 4000, 5000)
|
||||
mobs:spawn_specific("mobs_fish:tropical", {"default:water_source", "default:water_flowing"}, nil, 5, 20, 30, 10000, 1, 8769, 8798)
|
||||
end
|
||||
|
||||
|
@ -679,7 +687,6 @@ local t_mobs = {
|
|||
"dmobs:orc",
|
||||
"dmobs:ogre",
|
||||
"dmobs:ogre",
|
||||
"dmobs:dragon",
|
||||
}
|
||||
for _, mob in pairs(t_mobs) do
|
||||
if minetest.registered_entities[mob] then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue