Add a Way of checking for specific Feature with Lua Adds minetest.get_feature() and...
[oweals/minetest.git] / doc / lua_api.txt
index 07fb1ccd684a353c1892ecf73c6230b72d39a91e..597f98c2cb27bc9a5c00bbd81f0de42e8bc1a538 100644 (file)
@@ -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)