]> git.lizzy.rs Git - minetest.git/blobdiff - doc/lua_api.txt
Update Lua API documentation to include minetest.get_modnames()
[minetest.git] / doc / lua_api.txt
index 0f91d38949f6ca96358ae0c41fb66e6ae2c85448..d5797d17193a4936c632c8221b1d1a6ef89df566 100644 (file)
@@ -718,6 +718,8 @@ minetest namespace reference
 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_modnames() -> list of installed mods
+^ Return a list of installed mods, sorted alphabetically
 minetest.get_worldpath() -> eg. "/home/user/.minetest/world"
 ^ Useful for storing custom data
 minetest.is_singleplayer()