mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Load dependencies and description from mod.conf
This commit is contained in:
parent
dfc8198349
commit
71b2570f09
20 changed files with 237 additions and 140 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue