diff options
author | Andrew Ward <rw@rubenwardy.com> | 2018-03-28 22:14:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-28 22:14:16 +0100 |
commit | 71b2570f0919d3bb5575c9ec694ecd004222fcea (patch) | |
tree | f3f85d185dde66ab294abb1c15e349ad3b33e818 /doc/menu_lua_api.txt | |
parent | dfc81983491417c5cd1c99d7db05e421c409379d (diff) | |
download | minetest-71b2570f0919d3bb5575c9ec694ecd004222fcea.tar.gz minetest-71b2570f0919d3bb5575c9ec694ecd004222fcea.tar.bz2 minetest-71b2570f0919d3bb5575c9ec694ecd004222fcea.zip |
Load dependencies and description from mod.conf
Diffstat (limited to 'doc/menu_lua_api.txt')
-rw-r--r-- | doc/menu_lua_api.txt | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/menu_lua_api.txt b/doc/menu_lua_api.txt index 1d158f304..49c6fbef0 100644 --- a/doc/menu_lua_api.txt +++ b/doc/menu_lua_api.txt @@ -111,7 +111,7 @@ core.get_screen_info() window_height = <current window height> } -Games: +Packages: core.get_game(index) ^ returns { id = <id>, @@ -125,6 +125,15 @@ core.get_game(index) core.get_games() -> table of all games in upper format (possible in async calls) core.get_mapgen_names([include_hidden=false]) -> table of map generator algorithms registered in the core (possible in async calls) +core.get_mod_info(path) +^ returns { + name = "name of mod", + type = "mod" or "modpack", + description = "description", + path = "path/to/mod", + depends = {"mod", "names"}, + optional_depends = {"mod", "names"}, +} Favorites: core.get_favorites(location) -> list of favorites (possible in async calls) |