init.lua 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. tombs = {}
  2. tombs.nodes = {}
  3. tombs.recipes = {}
  4. --break the file up to make it easier to maintain.
  5. dofile(minetest.get_modpath('tombs')..'/machine.lua')
  6. dofile(minetest.get_modpath('tombs')..'/collision_boxes.lua')
  7. dofile(minetest.get_modpath('tombs')..'/gravestones.lua')
  8. dofile(minetest.get_modpath('tombs')..'/formspec.lua')
  9. dofile(minetest.get_modpath('tombs')..'/chisel.lua')
  10. --support for other mods
  11. if minetest.get_modpath('bakedclay') and (minetest.settings:get_bool('tombs.load_bakedclay')) then
  12. dofile(minetest.get_modpath('tombs')..'/bakedclay.lua')
  13. print 'Tombs loaded bakedclay support.'
  14. end
  15. if minetest.get_modpath('caverealms') and (minetest.settings:get_bool('tombs.load_caverealms')) then
  16. dofile(minetest.get_modpath('tombs')..'/caverealms.lua')
  17. print 'Tombs loaded caverealms support.'
  18. end
  19. if minetest.get_modpath('darkage') and (minetest.settings:get_bool('tombs.load_darkage')) then
  20. dofile(minetest.get_modpath('tombs')..'/darkage.lua')
  21. print 'Tombs loaded darkage support.'
  22. end
  23. if minetest.get_modpath('default') and (minetest.settings:get_bool('tombs.load_default')) then
  24. dofile(minetest.get_modpath('tombs')..'/default.lua')
  25. print 'Tombs loaded default support.'
  26. end
  27. if minetest.get_modpath('ethereal') and (minetest.settings:get_bool('tombs.load_ethereal')) then
  28. dofile(minetest.get_modpath('tombs')..'/ethereal.lua')
  29. print 'Tombs loaded ethereal support.'
  30. end
  31. if minetest.get_modpath('geominer') and (minetest.settings:get_bool('tombs.load_geominer')) then
  32. dofile(minetest.get_modpath('tombs')..'/geominer.lua')
  33. print 'Tombs loaded geominer support.'
  34. end
  35. if minetest.get_modpath('maple') and (minetest.settings:get_bool('tombs.load_maple')) then
  36. dofile(minetest.get_modpath('tombs')..'/maple.lua')
  37. print 'Tombs loaded maple support.'
  38. end
  39. if minetest.get_modpath('moreores') and (minetest.settings:get_bool('tombs.load_moreores')) then
  40. dofile(minetest.get_modpath('tombs')..'/moreores.lua')
  41. print 'Tombs loaded moreores support.'
  42. end
  43. if minetest.get_modpath('moretrees') and (minetest.settings:get_bool('tombs.load_moretrees')) then
  44. dofile(minetest.get_modpath('tombs')..'/moretrees.lua')
  45. print 'Tombs loaded moretrees support.'
  46. end