init.lua 1016 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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_animal") 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_animal = true
  10. input:close()
  11. input = nil
  12. end
  13. -- Animals
  14. dofile(path .. "chicken.lua") -- JKmurray
  15. dofile(path .. "cow.lua") -- KrupnoPavel
  16. dofile(path .. "rat.lua") -- PilzAdam
  17. dofile(path .. "sheep.lua") -- PilzAdam
  18. dofile(path .. "warthog.lua") -- KrupnoPavel
  19. dofile(path .. "bee.lua") -- KrupnoPavel
  20. dofile(path .. "bunny.lua") -- ExeterDad
  21. dofile(path .. "kitten.lua") -- Jordach/BFD
  22. dofile(path .. "penguin.lua") -- D00Med
  23. dofile(path .. "panda.lua") -- AspireMint
  24. -- Load custom spawning
  25. if mobs.custom_spawn_animal then
  26. dofile(path .. "spawn.lua")
  27. end
  28. -- Lucky Blocks
  29. dofile(path .. "lucky_block.lua")
  30. print (S("[MOD] Mobs Redo Animals loaded"))