init.lua 713 B

1234567891011121314151617181920212223
  1. --
  2. -- Experimental things
  3. --
  4. experimental = {}
  5. dofile(minetest.get_modpath("experimental").."/detached.lua")
  6. dofile(minetest.get_modpath("experimental").."/items.lua")
  7. dofile(minetest.get_modpath("experimental").."/commands.lua")
  8. function experimental.print_to_everything(msg)
  9. minetest.log("action", msg)
  10. minetest.chat_send_all(msg)
  11. end
  12. minetest.log("info", "[experimental] modname="..dump(minetest.get_current_modname()))
  13. minetest.log("info", "[experimental] modpath="..dump(minetest.get_modpath("experimental")))
  14. minetest.log("info", "[experimental] worldpath="..dump(minetest.get_worldpath()))
  15. minetest.register_on_mods_loaded(function()
  16. minetest.log("action", "[experimental] on_mods_loaded()")
  17. end)