init.lua 608 B

123456789101112131415161718
  1. timer = {}
  2. timer.path = minetest.get_modpath("timer")
  3. timer.modname=minetest.get_current_modname()
  4. timer.mod_storage=minetest.get_mod_storage()
  5. minetest.log("action", "[MOD]"..minetest.get_current_modname().." -- start loading from "..minetest.get_modpath(minetest.get_current_modname()))
  6. -- Load files
  7. -- import settingtypes.txt
  8. basic_functions.import_settingtype(timer.path .. "/settingtypes.txt")
  9. dofile(timer.path .. "/config.lua") -- API
  10. dofile(timer.path .. "/chat_commands.lua")
  11. dofile(timer.path .. "/register.lua")
  12. minetest.log("action", "[MOD]"..minetest.get_current_modname().." -- loaded ")