1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

Update Lua API documentation to include minetest.get_modnames()

This commit is contained in:
Matthew I 2012-07-21 21:45:09 -04:00 committed by Perttu Ahola
parent c62a121cca
commit c259f7c8bd

View file

@ -718,6 +718,8 @@ minetest namespace reference
minetest.get_current_modname() -> string minetest.get_current_modname() -> string
minetest.get_modpath(modname) -> eg. "/home/user/.minetest/usermods/modname" minetest.get_modpath(modname) -> eg. "/home/user/.minetest/usermods/modname"
^ Useful for loading additional .lua modules or static data from mod ^ 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" minetest.get_worldpath() -> eg. "/home/user/.minetest/world"
^ Useful for storing custom data ^ Useful for storing custom data
minetest.is_singleplayer() minetest.is_singleplayer()