init.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. local path = minetest.get_modpath(minetest.get_current_modname()) .. "/"
  2. -- Check for translation method
  3. local S
  4. if minetest.get_translator ~= nil then
  5. S = minetest.get_translator("mobs_monster") -- 5.x translation function
  6. else
  7. if minetest.get_modpath("intllib") then
  8. dofile(minetest.get_modpath("intllib") .. "/init.lua")
  9. if intllib.make_gettext_pair then
  10. S = intllib.make_gettext_pair() -- new gettext method
  11. else
  12. S = intllib.Getter() -- old text file method
  13. end
  14. else -- boilerplate function
  15. S = function(str, ...)
  16. local args = {...}
  17. return str:gsub("@%d+", function(match)
  18. return args[tonumber(match:sub(2))]
  19. end)
  20. end
  21. end
  22. end
  23. mobs.intllib_monster = S
  24. -- Monsters
  25. dofile(path .. "/dirt_monster.lua") -- PilzAdam
  26. dofile(path .. "/dungeon_master.lua")
  27. dofile(path .. "/oerkki.lua")
  28. dofile(path .. "/sand_monster.lua")
  29. dofile(path .. "/stone_monster.lua")
  30. dofile(path .. "/tree_monster.lua")
  31. dofile(path .. "/lava_flan.lua") -- Zeg9
  32. dofile(path .. "/mese_monster.lua")
  33. dofile(path .. "/spider.lua") -- AspireMint
  34. dofile(path .. "fire_spirit.lua")
  35. dofile(path .. "/lucky_block.lua")
  36. print ("[MOD] Mobs Redo Monsters loaded")