init.lua 1.1 KB

123456789101112131415161718192021222324252627282930
  1. -- Minetest 0.4 mod: default
  2. -- See README.txt for licensing and other information.
  3. -- The API documentation in here was moved into doc/lua_api.txt
  4. WATER_ALPHA = 160
  5. WATER_VISC = 1
  6. LAVA_VISC = 7
  7. LIGHT_MAX = 14
  8. SAVEDIR = "LOTT"
  9. -- Definitions made by this mod that other mods can use too
  10. default = {}
  11. default.gui_bg = ""
  12. default.gui_bg_img = "background[5,5;1,1;gui_formbg.png;true]"
  13. default.gui_slots = "listcolors[#606060AA;#606060;#141318;#30434C;#FFF]"
  14. -- Load files
  15. dofile(minetest.get_modpath("default").."/chatcommands.lua")
  16. dofile(minetest.get_modpath("default").."/crafting.lua")
  17. dofile(minetest.get_modpath("default").."/craftitems.lua")
  18. dofile(minetest.get_modpath("default").."/functions.lua")
  19. dofile(minetest.get_modpath("default").."/legacy.lua")
  20. dofile(minetest.get_modpath("default").."/mapgen.lua")
  21. dofile(minetest.get_modpath("default").."/nodes.lua")
  22. dofile(minetest.get_modpath("default").."/player.lua")
  23. dofile(minetest.get_modpath("default").."/tools.lua")
  24. dofile(minetest.get_modpath("default").."/torches.lua")
  25. dofile(minetest.get_modpath("default").."/trees.lua")