Add minetest.get_worldpath() for getting location for custom data
[oweals/minetest.git] / data / mods / default / init.lua
index d07337379c5e894c5f236898576988ba2ca28e50..3f4a8175eaa94e3b27e10ae15872415376c29129 100644 (file)
 --                  {type="node", pos={x=, y=, z=}}
 -- minetest.get_current_modname() -> string
 -- minetest.get_modpath(modname) -> eg. "/home/user/.minetest/usermods/modname"
+-- ^ Useful for loading additional .lua modules or static data from mod
+-- minetest.get_worldpath(modname) -> eg. "/home/user/.minetest/world"
+-- ^ Useful for storing custom data
 --
 -- minetest.debug(line)
 -- ^ Goes to dstream