-
Notifications
You must be signed in to change notification settings - Fork 7
/
init.lua
69 lines (49 loc) · 1.82 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
--This creates the livingnether object.
livingnether = {}
--This creates the naturalbiomes.settings object, and fills it with either the menu selected choices as defined in settingtypes.txt, or default values, (In this case, false).
livingnether.settings = {
clear_biomes = minetest.settings:get_bool("livingnether.clear_biomes") or false,
clear_decos = minetest.settings:get_bool("livingnether.clear_decos") or false,
clear_ores = minetest.settings:get_bool("livingnether.clear_ores") or false,
}
livingnether.MAX_HEIGHT = nether.DEPTH_CEILING
livingnether.MIN_HEIGHT = nether.FLOOR_CEILING
if livingnether.settings.clear_biomes then
minetest.clear_registered_biomes()
end
if livingnether.settings.clear_decos then
minetest.clear_registered_decorations()
end
if livingnether.settings.clear_ores then
minetest.clear_registered_ores()
end
local modname = "livingnether"
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("livingnether") or
dofile(path .. "intllib.lua")
mobs.intllib = S
-- Check for custom mob spawn file
local input = io.open(path .. "spawn.lua", "r")
if input then
mobs.custom_spawn_livingnether = true
input:close()
input = nil
end
-- Animals
dofile(path .. "razorback.lua") --
dofile(path .. "lavawalker.lua") --
dofile(path .. "tardigrade.lua") --
dofile(path .. "flyingrod.lua") --
dofile(path .. "cyst.lua") --
dofile(path .. "whip.lua") --
dofile(path .. "noodlemaster.lua") --
dofile(path .. "sokaarcher.lua") --
dofile(path .. "sokameele.lua") --
-- Load custom spawning
if mobs.custom_spawn_livingnether then
dofile(path .. "spawn.lua")
end
print (S("[MOD] Mobs Redo Animals loaded"))