2
0

init.lua 631 B

12345678910111213141516
  1. local modname = minetest.get_current_modname()
  2. local prefix = "["..modname.."] "
  3. -- Startup info
  4. minetest.log("action", prefix.."modname="..dump(modname))
  5. minetest.log("action", prefix.."modpath="..dump(minetest.get_modpath(modname)))
  6. minetest.log("action", prefix.."worldpath="..dump(minetest.get_worldpath()))
  7. -- Callback info
  8. minetest.register_on_mods_loaded(function()
  9. minetest.log("action", prefix.."Callback: on_mods_loaded()")
  10. end)
  11. minetest.register_on_chatcommand(function(name, command, params)
  12. minetest.log("action", prefix.."Caught command '"..command.."', issued by '"..name.."'. Parameters: '"..params.."'")
  13. end)