Mehr Mods hinzugefügt
This commit is contained in:
parent
92a55732cf
commit
9e345a25fb
2805 changed files with 2096013 additions and 0 deletions
44
mods/mobs_water/mobs_sharks/spawn_example.lua
Normal file
44
mods/mobs_water/mobs_sharks/spawn_example.lua
Normal file
|
@ -0,0 +1,44 @@
|
|||
|
||||
-- load settings
|
||||
|
||||
local ENABLE_LARGE = core.settings:get_bool("mobs_sharks.enable_large") ~= false
|
||||
local ENABLE_MEDIUM = core.settings:get_bool("mobs_sharks.enable_medium") ~= false
|
||||
local ENABLE_SMALL = core.settings:get_bool("mobs_sharks.enable_small") ~= false
|
||||
|
||||
-- Shark spawn examples
|
||||
|
||||
if ENABLE_SMALL then
|
||||
|
||||
mobs:spawn({
|
||||
name = "mobs_sharks:shark_sm",
|
||||
nodes = {"group:water"},
|
||||
neighbors = {"group:water", "seawrecks:woodship", "seawrecks:uboot"},
|
||||
interval = 30,
|
||||
chance = 20000,
|
||||
max_height = 0
|
||||
})
|
||||
end
|
||||
|
||||
if ENABLE_MEDIUM then
|
||||
|
||||
mobs:spawn({
|
||||
name = "mobs_sharks:shark_md",
|
||||
nodes = {"group:water"},
|
||||
neighbors = {"group:water", "seawrecks:woodship", "seawrecks:uboot"},
|
||||
interval = 30,
|
||||
chance = 20000,
|
||||
max_height = 0
|
||||
})
|
||||
end
|
||||
|
||||
if ENABLE_LARGE then
|
||||
|
||||
mobs:spawn({
|
||||
name = "mobs_sharks:shark_lg",
|
||||
nodes = {"group:water"},
|
||||
neighbors = {"group:water", "seawrecks:woodship", "seawrecks:uboot"},
|
||||
interval = 30,
|
||||
chance = 20000,
|
||||
max_height = 0
|
||||
})
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue