init.lua 682 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. -- Load support for intllib.
  2. local path = minetest.get_modpath(minetest.get_current_modname()) .. "/"
  3. local S = minetest.get_translator and minetest.get_translator("mobs_npc") or
  4. dofile(path .. "intllib.lua")
  5. mobs.intllib = S
  6. -- Check for custom mob spawn file
  7. local input = io.open(path .. "spawn.lua", "r")
  8. if input then
  9. mobs.custom_spawn_npc = true
  10. input:close()
  11. input = nil
  12. end
  13. -- NPCs
  14. dofile(path .. "npc.lua") -- TenPlus1
  15. dofile(path .. "trader.lua")
  16. dofile(path .. "igor.lua")
  17. -- Load custom spawning
  18. if mobs.custom_spawn_npc then
  19. dofile(path .. "spawn.lua")
  20. end
  21. -- Lucky Blocks
  22. dofile(path .. "/lucky_block.lua")
  23. print (S("[MOD] Mobs Redo NPCs loaded"))