init.lua 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. print ("[MOD] SimplySlopes loading")
  2. simplyslopes = {}
  3. simplyslopes.mod = "original"
  4. --= Load functions that creates the differents nodes.
  5. dofile(minetest.get_modpath("simplyslopes").."/functions.lua")
  6. --= Default Minetest
  7. dofile(minetest.get_modpath("simplyslopes").."/default_mod.lua")
  8. --= Lapis Mod
  9. if minetest.get_modpath("candy") then
  10. dofile(minetest.get_modpath("simplyslopes").."/candy_mod.lua")
  11. end
  12. --= Lapis Mod
  13. if minetest.get_modpath("lapis") then
  14. dofile(minetest.get_modpath("simplyslopes").."/lapis_mod.lua")
  15. end
  16. --= Baked Clay mod
  17. if minetest.get_modpath("bakedclay") then
  18. dofile(minetest.get_modpath("simplyslopes").."/bakedclay_mod.lua")
  19. end
  20. --= Wool mod
  21. if minetest.get_modpath("wool") then
  22. dofile(minetest.get_modpath("simplyslopes").."/wool_mod.lua")
  23. end
  24. --= Farming Mod
  25. if minetest.get_modpath("farming") then
  26. simplyslopes.register_all2("farming:straw")
  27. end
  28. --= Mobs Mod
  29. if minetest.get_modpath("mobs") and mobs and mobs.mod and mobs.mod == "redo" then
  30. simplyslopes.register_all2("mobs:cheeseblock")
  31. simplyslopes.register_all2("mobs:honey_block")
  32. end
  33. --= Castle Mod
  34. if minetest.get_modpath("castle") then
  35. dofile(minetest.get_modpath("simplyslopes").."/castle_mod.lua")
  36. end
  37. --= Homedecor Mod
  38. if minetest.get_modpath("homedecor") then
  39. dofile(minetest.get_modpath("simplyslopes").."/homedecor_mod.lua")
  40. end
  41. --= MoreTrees Mod
  42. if minetest.get_modpath("moretrees") then
  43. dofile(minetest.get_modpath("simplyslopes").."/moretrees_mod.lua")
  44. end
  45. --= Xanadu Mod
  46. --= Never found and tested this mod.
  47. if minetest.get_modpath("xanadu") then
  48. dofile(minetest.get_modpath("simplyslopes").."/xanadu_mod.lua")
  49. end
  50. --= Ethereal Mod
  51. -- Never managed to make any blocks with this mod.
  52. if minetest.get_modpath("ethereal") then
  53. dofile(minetest.get_modpath("simplyslopes").."/ethereal_mod.lua")
  54. end
  55. print ("[MOD] SimplySlopes loaded")