mirror of
https://codeberg.org/tenplus1/mobs_animal.git
synced 2024-12-23 01:10:25 +01:00
limit spawning animals to 200 high
This commit is contained in:
parent
f9e1b5880c
commit
f2699613e2
3
bee.lua
3
bee.lua
@ -50,6 +50,7 @@ mobs:spawn({
|
|||||||
min_light = 10,
|
min_light = 10,
|
||||||
chance = 9000,
|
chance = 9000,
|
||||||
min_height = 0,
|
min_height = 0,
|
||||||
|
max_height = 200,
|
||||||
day_toggle = true,
|
day_toggle = true,
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -93,7 +94,7 @@ minetest.register_node(":mobs:beehive", {
|
|||||||
|
|
||||||
after_place_node = function(pos, placer, itemstack)
|
after_place_node = function(pos, placer, itemstack)
|
||||||
|
|
||||||
if placer:is_player() then
|
if placer and placer:is_player() then
|
||||||
|
|
||||||
minetest.set_node(pos, {name = "mobs:beehive", param2 = 1})
|
minetest.set_node(pos, {name = "mobs:beehive", param2 = 1})
|
||||||
|
|
||||||
|
@ -117,7 +117,8 @@ mobs:spawn({
|
|||||||
nodes = {spawn_on},
|
nodes = {spawn_on},
|
||||||
min_light = 10,
|
min_light = 10,
|
||||||
chance = 15000,
|
chance = 15000,
|
||||||
min_height = 0,
|
min_height = 5,
|
||||||
|
max_height = 200,
|
||||||
day_toggle = true,
|
day_toggle = true,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -99,6 +99,7 @@ mobs:spawn({
|
|||||||
chance = 15000,
|
chance = 15000,
|
||||||
active_object_count = 2,
|
active_object_count = 2,
|
||||||
min_height = 0,
|
min_height = 0,
|
||||||
|
max_height = 200,
|
||||||
day_toggle = true,
|
day_toggle = true,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
2
cow.lua
2
cow.lua
@ -113,7 +113,7 @@ mobs:spawn({
|
|||||||
min_light = 10,
|
min_light = 10,
|
||||||
chance = 15000,
|
chance = 15000,
|
||||||
min_height = 0,
|
min_height = 0,
|
||||||
max_height = 31000,
|
max_height = 200,
|
||||||
day_toggle = true,
|
day_toggle = true,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@ mobs:spawn({
|
|||||||
min_light = 12,
|
min_light = 12,
|
||||||
chance = 22000,
|
chance = 22000,
|
||||||
min_height = 0,
|
min_height = 0,
|
||||||
max_height = 31000,
|
max_height = 200,
|
||||||
day_toggle = true,
|
day_toggle = true,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -64,6 +64,7 @@ mobs:spawn({
|
|||||||
min_light = 10,
|
min_light = 10,
|
||||||
chance = 20000,
|
chance = 20000,
|
||||||
min_height = 0,
|
min_height = 0,
|
||||||
|
max_height = 200,
|
||||||
day_toggle = true,
|
day_toggle = true,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -201,7 +201,7 @@ mobs:spawn({
|
|||||||
min_light = 10,
|
min_light = 10,
|
||||||
chance = 15000,
|
chance = 15000,
|
||||||
min_height = 0,
|
min_height = 0,
|
||||||
max_height = 31000,
|
max_height = 200,
|
||||||
day_toggle = true,
|
day_toggle = true,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ mobs:spawn({
|
|||||||
min_light = 10,
|
min_light = 10,
|
||||||
chance = 15000,
|
chance = 15000,
|
||||||
min_height = 0,
|
min_height = 0,
|
||||||
max_height = 31000,
|
max_height = 200,
|
||||||
day_toggle = true,
|
day_toggle = true,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user