mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-21 18:11:11 +00:00
Introduce get_modpath() for CSM
This commit is contained in:
parent
82a2e02323
commit
b1f2a69382
5 changed files with 23 additions and 4 deletions
|
@ -631,6 +631,10 @@ Minetest namespace reference
|
|||
### Utilities
|
||||
|
||||
* `minetest.get_current_modname()`: returns the currently loading mod's name, when we are loading a mod
|
||||
* `minetest.get_modpath(modname)`: returns virtual path of given mod including
|
||||
the trailing separator. This is useful to load additional Lua files
|
||||
contained in your mod:
|
||||
e.g. `dofile(minetest.get_modpath(minetest.get_current_modname()) .. "stuff.lua")`
|
||||
* `minetest.get_language()`: returns the currently set gettext language.
|
||||
* `minetest.get_version()`: returns a table containing components of the
|
||||
engine version. Components:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue