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, })