mirror of
https://codeberg.org/tenplus1/mobs_animal.git
synced 2024-12-22 17:00:26 +01:00
animals spawn near grass now (chance amended to suit)
This commit is contained in:
parent
f2699613e2
commit
cbac52f407
4
bee.lua
4
bee.lua
@ -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,
|
||||||
})
|
})
|
||||||
|
@ -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,
|
||||||
|
@ -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
13
cow.lua
@ -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,
|
||||||
})
|
})
|
||||||
|
14
kitten.lua
14
kitten.lua
@ -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,
|
||||||
})
|
})
|
||||||
|
11
sheep.lua
11
sheep.lua
@ -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,
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user