1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-17 15:58:26 +01:00

Sharks now spawn under -25 and...

in water source only
This commit is contained in:
Ombridride 2015-10-07 18:59:57 +02:00
parent 9a3a835771
commit c3b1c2f6d9

View File

@ -20,7 +20,7 @@ local l_anims = {
}
local l_model = "mobs_shark.b3d"
local l_egg_texture = "mobs_shark_shark_item.png"
local l_spawn_in = {"default:water_flowing","default:water_source"}
local l_spawn_in = {"default:water_source"}
local l_spawn_near = {"default:water_flowing","default:water_source","seawrecks:woodship","seawrecks:uboot"}
local l_spawn_chance = 500000
@ -65,7 +65,7 @@ mobs:register_mob("mobs:shark_lg", {
end
})
--name, nodes, neighbours, minlight, maxlight, interval, chance, active_object_count, min_height, max_height
mobs:spawn_specific("mobs:shark_lg", l_spawn_in, l_spawn_near, -1, 20, 30, l_spawn_chance, 1, -31000, 0)
mobs:spawn_specific("mobs:shark_lg", l_spawn_in, l_spawn_near, -1, 20, 30, l_spawn_chance, 1, -31000, -25)
mobs:register_egg("mobs:shark_lg", "Shark (large)", l_egg_texture, 0)
-- medium
@ -96,5 +96,5 @@ mobs:register_mob("mobs:shark_md", {
animation = l_anims
})
--name, nodes, neighbours, minlight, maxlight, interval, chance, active_object_count, min_height, max_height
mobs:spawn_specific("mobs:shark_md", l_spawn_in, l_spawn_near, -1, 20, 30, l_spawn_chance, 1, -31000, 0)
mobs:spawn_specific("mobs:shark_md", l_spawn_in, l_spawn_near, -1, 20, 30, l_spawn_chance, 1, -31000, -25)
mobs:register_egg("mobs:shark_md", "Shark (medium)", l_egg_texture, 0)