forked from Skandarella/livingcavesmobs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.lua
47 lines (34 loc) · 1.44 KB
/
init.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
--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 .. "biter.lua") --
dofile(path .. "chubby.lua") --
dofile(path .. "explodingbacteria.lua") --
dofile(path .. "flesheatingbacteria.lua") --
dofile(path .. "moth.lua") --
dofile(path .. "grub.lua") --
dofile(path .. "yeti.lua") --
dofile(path .. "hunger.lua") --
print (S("[MOD] Caves loaded"))