init.lua 681 B

12345678910111213141516171819
  1. md_technic = {}
  2. md_technic.path = minetest.get_modpath("md_technic")
  3. md_technic.modname = minetest.get_current_modname()
  4. minetest.log("action", "[MOD]"..minetest.get_current_modname().." -- start loading from "..minetest.get_modpath(minetest.get_current_modname()))
  5. -- Load files
  6. -- import settingtypes.txt
  7. basic_functions.import_settingtype(md_technic.path .. "/settingtypes.txt")
  8. dofile(md_technic.path .. "/config.lua")
  9. dofile(md_technic.path .. "/furnace.lua")
  10. dofile(md_technic.path .. "/smelter.lua")
  11. if technic ~= nil then
  12. dofile(md_technic.path .. "/batteries.lua")
  13. end
  14. minetest.log("action", "[MOD]"..minetest.get_current_modname().." -- loaded ")