Mehr Mods hinzugefügt
This commit is contained in:
parent
92a55732cf
commit
9e345a25fb
2805 changed files with 2096013 additions and 0 deletions
54
mods/mobs_sky/mobs_birds/spawn_example.lua
Normal file
54
mods/mobs_sky/mobs_birds/spawn_example.lua
Normal file
|
@ -0,0 +1,54 @@
|
|||
|
||||
-- load settings
|
||||
|
||||
local ENABLE_GULLS = core.settings:get_bool("mobs_birds.enable_gulls") ~= false
|
||||
local ENABLE_LARGE = core.settings:get_bool("mobs_birds.enable_large_birds") ~= false
|
||||
local ENABLE_SMALL = core.settings:get_bool("mobs_birds.enable_small_birds") ~= false
|
||||
|
||||
-- Custom spawn examples
|
||||
|
||||
if ENABLE_GULL then
|
||||
|
||||
mobs:spawn({
|
||||
name = "mobs_birds:gull",
|
||||
nodes = {"air"},
|
||||
neighbors = {"group:water"},
|
||||
max_light = 5,
|
||||
interval = 30,
|
||||
chance = 24000,
|
||||
min_height = 0,
|
||||
max_height = 200
|
||||
})
|
||||
end
|
||||
|
||||
if ENABLE_SMALL then
|
||||
|
||||
mobs:spawn({
|
||||
name = "mobs_birds:bird_sm",
|
||||
nodes = {"air"},
|
||||
neighbors = {
|
||||
"group:leaves" , (mod_mcl and "mcl_core:cactus" or "default:cactus")
|
||||
},
|
||||
max_light = 5,
|
||||
interval = 30,
|
||||
chance = 18000,
|
||||
min_height = 0,
|
||||
max_height = 200
|
||||
})
|
||||
end
|
||||
|
||||
if ENABLE_LARGE then
|
||||
|
||||
mobs:spawn({
|
||||
name = "mobs_birds:bird_lg",
|
||||
nodes = {"air"},
|
||||
neighbors = {
|
||||
"group:leaves" , (mod_mcl and "mcl_core:cactus" or "default:cactus")
|
||||
},
|
||||
max_light = 5,
|
||||
interval = 30,
|
||||
chance = 18000,
|
||||
min_height = 0,
|
||||
max_height = 200
|
||||
})
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue