animals spawn near grass now (chance amended to suit)

This commit is contained in:
TenPlus1 2018-03-04 15:45:09 +00:00
parent f2699613e2
commit cbac52f407
7 changed files with 29 additions and 26 deletions

View File

@ -48,8 +48,8 @@ mobs:spawn({
name = "mobs_animal:bee", name = "mobs_animal:bee",
nodes = {"group:flower"}, nodes = {"group:flower"},
min_light = 10, min_light = 10,
chance = 9000, chance = 5000,
min_height = 0, min_height = 3,
max_height = 200, max_height = 200,
day_toggle = true, day_toggle = true,
}) })

View File

@ -115,8 +115,9 @@ end
mobs:spawn({ mobs:spawn({
name = "mobs_animal:bunny", name = "mobs_animal:bunny",
nodes = {spawn_on}, nodes = {spawn_on},
neighbors = {"group:grass"},
min_light = 10, min_light = 10,
chance = 15000, chance = 5000, -- 15000
min_height = 5, min_height = 5,
max_height = 200, max_height = 200,
day_toggle = true, day_toggle = true,

View File

@ -95,10 +95,11 @@ end
mobs:spawn({ mobs:spawn({
name = "mobs_animal:chicken", name = "mobs_animal:chicken",
nodes = {spawn_on}, nodes = {spawn_on},
neighbors = {"group:grass"},
min_light = 10, min_light = 10,
chance = 15000, chance = 5000, -- 15000
active_object_count = 2, active_object_count = 2,
min_height = 0, min_height = 5,
max_height = 200, max_height = 200,
day_toggle = true, day_toggle = true,
}) })

13
cow.lua
View File

@ -101,18 +101,13 @@ mobs:register_mob("mobs_animal:cow", {
}) })
local spawn_on = "default:dirt_with_grass"
if minetest.get_modpath("ethereal") then
spawn_on = "ethereal:green_dirt"
end
mobs:spawn({ mobs:spawn({
name = "mobs_animal:cow", name = "mobs_animal:cow",
nodes = {spawn_on}, nodes = {"default:dirt_with_grass", "ethereal:green_dirt"},
neighbors = {"group:grass"},
min_light = 10, min_light = 10,
chance = 15000, chance = 5000, -- 15000
min_height = 0, min_height = 5,
max_height = 200, max_height = 200,
day_toggle = true, day_toggle = true,
}) })

View File

@ -53,12 +53,20 @@ stepheight = 0.6,
}) })
local spawn_on = "default:dirt_with_grass"
if minetest.get_modpath("ethereal") then
spawn_on = "ethereal:grove_dirt"
end
mobs:spawn({ mobs:spawn({
name = "mobs_animal:kitten", name = "mobs_animal:kitten",
nodes = {"default:dirt_with_grass", "ethereal:grove_dirt"}, nodes = {spawn_on},
neighbors = {"group:grass"},
min_light = 12, min_light = 12,
chance = 22000, chance = 10000, -- 22000
min_height = 0, min_height = 5,
max_height = 200, max_height = 200,
day_toggle = true, day_toggle = true,
}) })

View File

@ -189,17 +189,12 @@ stepheight = 0.6,
end end
local spawn_on = "default:dirt_with_grass"
if minetest.get_modpath("ethereal") then
spawn_on = "ethereal:green_dirt"
end
mobs:spawn({ mobs:spawn({
name = "mobs_animal:sheep_white", name = "mobs_animal:sheep_white",
nodes = {spawn_on}, nodes = {"default:dirt_with_grass", "ethereal:green_dirt"},
neighbors = {"group:grass"},
min_light = 10, min_light = 10,
chance = 15000, chance = 5000, -- 15000
min_height = 0, min_height = 0,
max_height = 200, max_height = 200,
day_toggle = true, day_toggle = true,

View File

@ -59,16 +59,19 @@ stepheight = 0.6,
local spawn_on = "default:dirt_with_grass" local spawn_on = "default:dirt_with_grass"
local spawn_by = {"group:grass"}
if minetest.get_modpath("ethereal") then if minetest.get_modpath("ethereal") then
spawn_on = "ethereal:mushroom_dirt" spawn_on = "ethereal:mushroom_dirt"
spawn_by = {"flowers:mushroom_brown", "flowers:mushroom_brown"}
end end
mobs:spawn({ mobs:spawn({
name = "mobs_animal:pumba", name = "mobs_animal:pumba",
nodes = {spawn_on}, nodes = {spawn_on},
neighbors = spawn_by,
min_light = 10, min_light = 10,
chance = 15000, chance = 5000, -- 15000
min_height = 0, min_height = 0,
max_height = 200, max_height = 200,
day_toggle = true, day_toggle = true,