summaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2013-05-03 23:58:22 +0200
committerKahrl <kahrl@gmx.net>2013-05-03 23:58:22 +0200
commit969d2b3eb1f30e257823d9220697e47735be68e3 (patch)
treef94b2176f4a145eef3c8bea452ea788ef2810ec0 /doc/lua_api.txt
parenta031a1548783f1dd4d6b357fef391647dfb35ce3 (diff)
downloadminetest-969d2b3eb1f30e257823d9220697e47735be68e3.tar.gz
minetest-969d2b3eb1f30e257823d9220697e47735be68e3.tar.bz2
minetest-969d2b3eb1f30e257823d9220697e47735be68e3.zip
Optional dependencies and properly handle mod name conflicts again
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 597f98c2c..02ca7cba3 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -120,6 +120,17 @@ depends.txt:
List of mods that have to be loaded before loading this mod.
A single line contains a single modname.
+ Optional dependencies can be defined by appending a question mark
+ to a single modname. Their meaning is that if the specified mod
+ is missing, that does not prevent this mod from being loaded.
+
+optdepends.txt:
+ An alternative way of specifying optional dependencies.
+ Like depends.txt, a single line contains a single modname.
+
+ NOTE: This file exists for compatibility purposes only and
+ support for it will be removed from the engine by the end of 2013.
+
init.lua:
The main Lua script. Running this script should register everything it
wants to register. Subsequent execution depends on minetest calling the