summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2018-03-04 14:40:24 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2018-03-04 14:40:24 +0000
commitf2699613e2d7abcad053577c7f4cc3172000c738 (patch)
tree1940c8df3e796eb4da89d80b357f8fe1db73e51f
parentf9e1b5880cf74c4b2beb0397092ec5a0c4e2ebee (diff)
limit spawning animals to 200 high
-rw-r--r--bee.lua3
-rw-r--r--bunny.lua3
-rw-r--r--chicken.lua1
-rw-r--r--cow.lua2
-rw-r--r--kitten.lua2
-rw-r--r--penguin.lua1
-rw-r--r--sheep.lua2
-rw-r--r--warthog.lua2
8 files changed, 10 insertions, 6 deletions
diff --git a/bee.lua b/bee.lua
index 782cd4a..a0bcd82 100644
--- a/bee.lua
+++ b/bee.lua
@@ -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})
diff --git a/bunny.lua b/bunny.lua
index 0259fb8..108dffc 100644
--- a/bunny.lua
+++ b/bunny.lua
@@ -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,
})
diff --git a/cow.lua b/cow.lua
index 95176be..545be46 100644
--- a/cow.lua
+++ b/cow.lua
@@ -113,7 +113,7 @@ mobs:spawn({
min_light = 10,
chance = 15000,
min_height = 0,
- max_height = 31000,
+ max_height = 200,
day_toggle = true,
})
diff --git a/kitten.lua b/kitten.lua
index 595471d..5be8e90 100644
--- a/kitten.lua
+++ b/kitten.lua
@@ -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,
})
diff --git a/sheep.lua b/sheep.lua
index e67325b..2da35d1 100644
--- a/sheep.lua
+++ b/sheep.lua
@@ -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,
})