aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2019-11-08 20:18:41 +0100
committersfan5 <sfan5@live.de>2019-11-09 16:08:38 +0100
commitb1f2a693820537c6ecd47b84056da136e2f9f563 (patch)
tree77699b68ef46d93b7f880ace49b976d7c359b7e4 /doc
parent82a2e02323615473fc3039508b4c4529591e27d9 (diff)
downloadminetest-b1f2a693820537c6ecd47b84056da136e2f9f563.tar.gz
minetest-b1f2a693820537c6ecd47b84056da136e2f9f563.tar.bz2
minetest-b1f2a693820537c6ecd47b84056da136e2f9f563.zip
Introduce get_modpath() for CSM
Diffstat (limited to 'doc')
-rw-r--r--doc/client_lua_api.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/client_lua_api.txt b/doc/client_lua_api.txt
index d355376f5..ab7963029 100644
--- a/doc/client_lua_api.txt
+++ b/doc/client_lua_api.txt
@@ -631,6 +631,10 @@ Minetest namespace reference
### Utilities
* `minetest.get_current_modname()`: returns the currently loading mod's name, when we are loading a mod
+* `minetest.get_modpath(modname)`: returns virtual path of given mod including
+ the trailing separator. This is useful to load additional Lua files
+ contained in your mod:
+ e.g. `dofile(minetest.get_modpath(minetest.get_current_modname()) .. "stuff.lua")`
* `minetest.get_language()`: returns the currently set gettext language.
* `minetest.get_version()`: returns a table containing components of the
engine version. Components: