init.lua 901 B

123456789101112131415161718192021222324252627282930
  1. -- base copied from 3d_armor_ui
  2. -- support for i18n
  3. kiosk = {}
  4. kiosk.path = minetest.get_modpath("kiosk")
  5. kiosk.config = minetest.get_mod_storage()
  6. kiosk.modname=minetest.get_current_modname()
  7. local S = dofile(kiosk.path .. "/intllib.lua")
  8. kiosk.intllib = S
  9. local F = minetest.formspec_escape
  10. minetest.log("action", "[MOD]"..minetest.get_current_modname().." -- start loading from "..minetest.get_modpath(minetest.get_current_modname()))
  11. -- import settingtypes.txt
  12. basic_functions.import_settingtype(kiosk.path .. "/settingtypes.txt")
  13. if not minetest.global_exists("unified_inventory") then
  14. minetest.log("warning", S("Kiosk: Mod loaded but unused."))
  15. return
  16. end
  17. dofile(kiosk.path .. "/api.lua")
  18. dofile(kiosk.path .. "/config.lua")
  19. if rawget(_G,"unified_inventory") then
  20. dofile(kiosk.path .. "/register.lua")
  21. end
  22. minetest.log("action", "[MOD]"..minetest.get_current_modname().." -- loaded ")