init.lua 783 B

123456789101112131415161718192021222324252627
  1. local modpath = minetest.get_modpath("technic_worldgen")
  2. technic = rawget(_G, "technic") or {}
  3. technic.worldgen = {
  4. gettext = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end,
  5. }
  6. dofile(modpath.."/config.lua")
  7. dofile(modpath.."/nodes.lua")
  8. dofile(modpath.."/oregen.lua")
  9. dofile(modpath.."/crafts.lua")
  10. -- Rubber trees, moretrees also supplies these
  11. if not minetest.get_modpath("moretrees") then
  12. dofile(modpath.."/rubber.lua")
  13. else
  14. -- older versions of technic provided rubber trees regardless
  15. minetest.register_alias("technic:rubber_sapling", "moretrees:rubber_tree_sapling")
  16. minetest.register_alias("technic:rubber_tree_empty", "moretrees:rubber_tree_trunk_empty")
  17. end
  18. -- mg suppport
  19. if minetest.get_modpath("mg") then
  20. dofile(modpath.."/mg.lua")
  21. end