Mehr Mods hinzugefügt
This commit is contained in:
parent
92a55732cf
commit
9e345a25fb
2805 changed files with 2096013 additions and 0 deletions
50
mods/marinaramobs/init.lua
Normal file
50
mods/marinaramobs/init.lua
Normal file
|
@ -0,0 +1,50 @@
|
|||
--This creates the livingcavesmobs object.
|
||||
livingcavesmobs = {}
|
||||
|
||||
--This creates the livingcavesmobs.settings object, and fills it with either the menu selected choices as defined in settingtypes.txt, or default values, (In this case, false).
|
||||
livingcavesmobs.settings = {
|
||||
clear_biomes = minetest.settings:get_bool("livingcavesmobs.clear_biomes") or false,
|
||||
clear_decos = minetest.settings:get_bool("livingcavesmobs.clear_decos") or false,
|
||||
clear_ores = minetest.settings:get_bool("livingcavesmobs.clear_ores") or false,
|
||||
}
|
||||
|
||||
if livingcavesmobs.settings.clear_biomes then
|
||||
minetest.clear_registered_biomes()
|
||||
end
|
||||
if livingcavesmobs.settings.clear_decos then
|
||||
minetest.clear_registered_decorations()
|
||||
end
|
||||
if livingcavesmobs.settings.clear_ores then
|
||||
minetest.clear_registered_ores()
|
||||
end
|
||||
|
||||
local modname = "livingcavesmobs"
|
||||
local modpath = minetest.get_modpath(modname)
|
||||
local mg_name = minetest.get_mapgen_setting("mg_name")
|
||||
|
||||
-- Load support for intllib.
|
||||
local path = minetest.get_modpath(minetest.get_current_modname()) .. "/"
|
||||
|
||||
local S = minetest.get_translator and minetest.get_translator("livingcavesmobs") or
|
||||
dofile(path .. "intllib.lua")
|
||||
|
||||
|
||||
|
||||
-- plants
|
||||
dofile(path .. "parrotfish.lua") --
|
||||
dofile(path .. "jellyfish.lua") --
|
||||
dofile(path .. "nautilus.lua") --
|
||||
dofile(path .. "octopus.lua") --
|
||||
dofile(path .. "seamouse.lua") --
|
||||
dofile(path .. "seaslug.lua") --
|
||||
dofile(path .. "seaurchin.lua") --
|
||||
dofile(path .. "starfish.lua") --
|
||||
dofile(path .. "dolphin.lua") --
|
||||
dofile(path .. "hunger.lua") --
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
print (S("[MOD] Caves loaded"))
|
Loading…
Add table
Add a link
Reference in a new issue