From 888b0ebfec8c2eff9015163549a7e47443cb8665 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Fri, 1 Apr 2016 21:00:20 -0400 Subject: "explode" all modpacks into their individual components (you can't have a modpack buried inside a modpack) --- glooptest/init.lua | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 glooptest/init.lua (limited to 'glooptest/init.lua') diff --git a/glooptest/init.lua b/glooptest/init.lua new file mode 100644 index 0000000..899a85d --- /dev/null +++ b/glooptest/init.lua @@ -0,0 +1,65 @@ +-- GloopTest general initiation file. +-- To edit what modules will load, please edit module.cfg which can be found in the same folder as this file. +-- +-- GloopTest random data: +-- Version : 0.0.4a +-- Current module amount : 6 +-- Current compatible minetest version : 0.4.7 +-- License : CC-BY-SA +-- Totals: lol I don't know +-- End random data. + +-- Open configuration files. +dofile(minetest.get_modpath("glooptest").."/general.cfg") +dofile(minetest.get_modpath("glooptest").."/module.cfg") + +-- Set up some variables and crap. +local modules_loaded = 0 +glooptest = {} + +-- Set up some general functions for random crap. +function glooptest.debug(level,message) + print("["..level.."][GloopTest v0.0.4a] "..message) +end + +if LOAD_ORE_MODULE == true then + dofile(minetest.get_modpath("glooptest").."/ore_module/init.lua") + local modulecount = modules_loaded + modules_loaded = modulecount+1 +end + +if LOAD_TOOLS_MODULE == true then + dofile(minetest.get_modpath("glooptest").."/tools_module/init.lua") + local modulecount = modules_loaded + modules_loaded = modulecount+1 +end + +if LOAD_PARTS_MODULE == true then + dofile(minetest.get_modpath("glooptest").."/parts_module/init.lua") + local modulecount = modules_loaded + modules_loaded = modulecount+1 +end + +if LOAD_TECH_MODULE == true then + dofile(minetest.get_modpath("glooptest").."/tech_module/init.lua") + local modulecount = modules_loaded + modules_loaded = modulecount+1 +end + +if LOAD_OTHERGEN_MODULE == true then + dofile(minetest.get_modpath("glooptest").."/othergen_module/init.lua") + local modulecount = modules_loaded + modules_loaded = modulecount+1 +end + +if LOAD_COMPAT_MODULE == true then + dofile(minetest.get_modpath("glooptest").."/compat_module/init.lua") + local modulecount = modules_loaded + modules_loaded = modulecount+1 +end + +if modules_loaded == 0 then + glooptest.debug("ERROR","It helps if you activate some of the modules.") +else + glooptest.debug("MESSAGE",modules_loaded.." modules were successfully loaded!") +end -- cgit v1.2.3