init.lua 539 B

12345678910111213141516171819
  1. mobs = mobs or {}
  2. mobs.modpath = minetest.get_modpath("mobs")
  3. -- Options.
  4. mobs.debug_paths = false -- Show paths to administrator?
  5. mobs.report_name = "" -- Name of mob for which to send reports to admin.
  6. mobs.enable_reports = false
  7. minetest.register_privilege("mobs_ignore", {
  8. description = "Mobs will ignore player.",
  9. give_to_singleplayer = false,
  10. })
  11. dofile(mobs.modpath .. "/api.lua")
  12. dofile(mobs.modpath .. "/crafts.lua")
  13. dofile(mobs.modpath .. "/spawner.lua")
  14. reload.register_file("mobs:chat", mobs.modpath .. "/chat.lua", true)