summaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorSfan5 <sfan5@live.de>2013-05-01 12:31:21 +0200
committerSfan5 <sfan5@live.de>2013-05-01 15:06:01 +0200
commita4183994a446a065e3151745b4167270ebae6194 (patch)
tree42adc331db248e6f34188d6e0111d454a5162144 /doc/lua_api.txt
parentc824abd7b2e199d9c7e3dcc2839a28275f4120f2 (diff)
downloadminetest-a4183994a446a065e3151745b4167270ebae6194.tar.gz
minetest-a4183994a446a065e3151745b4167270ebae6194.tar.bz2
minetest-a4183994a446a065e3151745b4167270ebae6194.zip
Add a Way of checking for specific Feature with Lua Adds minetest.get_feature() and minetest.has_feature()
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 07fb1ccd6..597f98c2c 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -912,6 +912,11 @@ minetest.get_modnames() -> list of installed mods
minetest.get_worldpath() -> eg. "/home/user/.minetest/world"
^ Useful for storing custom data
minetest.is_singleplayer()
+minetest.features
+^ table containing API feature flags: {foo=true, bar=true}
+minetest.has_feature(arg) -> bool, missing_features
+^ arg: string or table in format {foo=true, bar=true}
+^ missing_features: {foo=true, bar=true}
minetest.debug(line)
^ Always printed to stderr and logfile (print() is redirected here)