init.lua 749 B

12345678910111213141516171819202122232425262728
  1. etherium_stuff = {}
  2. local modpath=minetest.get_modpath("etherium_stuff")
  3. -- Intllib
  4. local S
  5. if minetest.global_exists("intllib") then
  6. if intllib.make_gettext_pair then
  7. -- New method using gettext.
  8. S = intllib.make_gettext_pair()
  9. else
  10. -- Old method using text files.
  11. S = intllib.Getter()
  12. end
  13. else
  14. S = function(s) return s end
  15. end
  16. etherium_stuff.intllib = S
  17. dofile(minetest.get_modpath("etherium_stuff").."/torch.lua")
  18. dofile(minetest.get_modpath("etherium_stuff").."/crafting.lua")
  19. dofile(minetest.get_modpath("etherium_stuff").."/water.lua")
  20. dofile(minetest.get_modpath("etherium_stuff").."/nodes.lua")
  21. dofile(minetest.get_modpath("etherium_stuff").."/stairs.lua")
  22. dofile(minetest.get_modpath("etherium_stuff").."/lucky_block.lua")