init.lua 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. minerdream = {}
  2. minerdream.path = minetest.get_modpath("minerdream")
  3. minerdream.modname = minetest.get_current_modname()
  4. minerdream.items={}
  5. minerdream.itemdef={}
  6. local S = dofile(minerdream.path .. "/intllib.lua")
  7. minerdream.intllib = S
  8. minetest.log("action", "[MOD]"..minetest.get_current_modname().." -- start loading from "..minetest.get_modpath(minetest.get_current_modname()))
  9. -- import settingtypes.txt
  10. basic_functions.import_settingtype(minerdream.path .. "/settingtypes.txt")
  11. dofile(minerdream.path .. "/config.lua")
  12. dofile(minerdream.path .. "/api.lua")
  13. dofile(minerdream.path .. "/read_ore_config.lua")
  14. --dofile(minerdream.path .. "/read_tool_config.lua")
  15. --dofile(minerdream.path .. "/read_armor_config.lua")
  16. dofile(minerdream.path .. "/items.lua")
  17. dofile(minerdream.path .. "/overrides.lua")
  18. dofile(minerdream.path .. "/blocks.lua")
  19. dofile(minerdream.path .. "/generation.lua")
  20. dofile(minerdream.path .. "/crafting.lua")
  21. dofile(minerdream.path .. "/read_weapon_config.lua")
  22. dofile(minerdream.path .. "/armor.lua")
  23. dofile(minerdream.path .. "/experiments.lua")
  24. dofile(minerdream.path .. "/read_mobs_config.lua")
  25. minetest.log("action", "[MOD]"..minetest.get_current_modname().." -- loaded ")
  26. --for i,tdef in pairs(minerdream.itemdef) do
  27. -- local file=io.open(minerdream.path.."/config/"..i..".json","w")
  28. -- local jsonout=minetest.write_json(tdef)
  29. -- file:write(jsonout)
  30. -- file:close()
  31. ---- print(dump(tdef))
  32. --end