-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.lua
25 lines (19 loc) · 867 Bytes
/
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
caverealms = {} --create a container for functions and constants
--grab a shorthand for the filepath of the mod
local modpath = minetest.get_modpath(minetest.get_current_modname())
local config = dofile(modpath .. "/config.lua") --configuration file; holds various constants
--load companion lua files
dofile(modpath .. "/crafting.lua") --crafting recipes
dofile(modpath .. "/nodes.lua") --node definitions
dofile(modpath .. "/stairs.lua") --stairs (mod auto-detected)
dofile(modpath .. "/plants.lua")
if minetest.get_modpath("mobs_monster") and config.dm_spawn == true then
dofile(modpath .. "/dungeon_master.lua") --special DMs for DM's Lair biome
end
-- register mapgen script
if minetest.register_mapgen_script then
minetest.register_mapgen_script(modpath .. "/mapgen.lua")
else
dofile(modpath .. "/mapgen.lua")
end
print("[MOD] Caverealms Lite loaded")