diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2018-03-04 14:40:24 +0000 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2018-03-04 14:40:24 +0000 |
commit | f2699613e2d7abcad053577c7f4cc3172000c738 (patch) | |
tree | 1940c8df3e796eb4da89d80b357f8fe1db73e51f | |
parent | f9e1b5880cf74c4b2beb0397092ec5a0c4e2ebee (diff) |
limit spawning animals to 200 high
-rw-r--r-- | bee.lua | 3 | ||||
-rw-r--r-- | bunny.lua | 3 | ||||
-rw-r--r-- | chicken.lua | 1 | ||||
-rw-r--r-- | cow.lua | 2 | ||||
-rw-r--r-- | kitten.lua | 2 | ||||
-rw-r--r-- | penguin.lua | 1 | ||||
-rw-r--r-- | sheep.lua | 2 | ||||
-rw-r--r-- | warthog.lua | 2 |
8 files changed, 10 insertions, 6 deletions
@@ -50,6 +50,7 @@ mobs:spawn({ min_light = 10, chance = 9000, min_height = 0, + max_height = 200, day_toggle = true, }) @@ -93,7 +94,7 @@ minetest.register_node(":mobs:beehive", { 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}) @@ -117,7 +117,8 @@ mobs:spawn({ nodes = {spawn_on}, min_light = 10, chance = 15000, - min_height = 0, + min_height = 5, + max_height = 200, day_toggle = true, }) diff --git a/chicken.lua b/chicken.lua index 74740b1..d19ebef 100644 --- a/chicken.lua +++ b/chicken.lua @@ -99,6 +99,7 @@ mobs:spawn({ chance = 15000, active_object_count = 2, min_height = 0, + max_height = 200, day_toggle = true, }) @@ -113,7 +113,7 @@ mobs:spawn({ min_light = 10, chance = 15000, min_height = 0, - max_height = 31000, + max_height = 200, day_toggle = true, }) @@ -59,7 +59,7 @@ mobs:spawn({ min_light = 12, chance = 22000, min_height = 0, - max_height = 31000, + max_height = 200, day_toggle = true, }) diff --git a/penguin.lua b/penguin.lua index ceeed77..caf4d43 100644 --- a/penguin.lua +++ b/penguin.lua @@ -64,6 +64,7 @@ mobs:spawn({ min_light = 10, chance = 20000, min_height = 0, + max_height = 200, day_toggle = true, }) @@ -201,7 +201,7 @@ mobs:spawn({ min_light = 10, chance = 15000, min_height = 0, - max_height = 31000, + max_height = 200, day_toggle = true, }) diff --git a/warthog.lua b/warthog.lua index 3d8f635..c3c198e 100644 --- a/warthog.lua +++ b/warthog.lua @@ -70,7 +70,7 @@ mobs:spawn({ min_light = 10, chance = 15000, min_height = 0, - max_height = 31000, + max_height = 200, day_toggle = true, }) |