init.lua 532 B

123456789101112131415161718192021222324252627282930
  1. local path = minetest.get_modpath("mobs")
  2. -- Peaceful player privilege
  3. minetest.register_privilege("peaceful_player", {
  4. description = "Prevents Mobs Redo mobs from attacking player",
  5. give_to_singleplayer = false
  6. })
  7. -- Mob API
  8. dofile(path .. "/api.lua")
  9. -- Rideable Mobs
  10. dofile(path .. "/mount.lua")
  11. -- Mob Items
  12. dofile(path .. "/crafts.lua")
  13. -- Mob Spawner
  14. dofile(path .. "/spawner.lua")
  15. -- Lucky Blocks
  16. if minetest.get_modpath("lucky_block") then
  17. dofile(path .. "/lucky_block.lua")
  18. end
  19. print("[MOD] Mobs Redo loaded")