summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDS <vorunbekannt75@web.de>2020-08-20 22:25:29 +0200
committerGitHub <noreply@github.com>2020-08-20 22:25:29 +0200
commit98faeac5a7b382e5d7ce0474bf7d52fc5975a23c (patch)
treeba08707c5b06087fe8472ed6245ace7a0683d7e2 /doc
parent9c7340104a7ec4007e3dfe0bb4482f3c8f9878e0 (diff)
downloadminetest-98faeac5a7b382e5d7ce0474bf7d52fc5975a23c.tar.gz
minetest-98faeac5a7b382e5d7ce0474bf7d52fc5975a23c.tar.bz2
minetest-98faeac5a7b382e5d7ce0474bf7d52fc5975a23c.zip
Load media from subfolders (#9065)
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt24
1 files changed, 15 insertions, 9 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 49fbe0d94..9770ae4a9 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -152,7 +152,11 @@ Mod directory structure
│   ├── models
│   ├── textures
│   │   ├── modname_stuff.png
- │   │   └── modname_something_else.png
+ │   │   ├── modname_something_else.png
+ │   │   ├── subfolder_foo
+ │   │   │ ├── modname_more_stuff.png
+ │   │   │ └── another_subfolder
+ │   │   └── bar_subfolder
│   ├── sounds
│   ├── media
│   ├── locale
@@ -221,18 +225,20 @@ registered callbacks.
`minetest.settings` can be used to read custom or existing settings at load
time, if necessary. (See [`Settings`])
-### `models`
-
-Models for entities or meshnodes.
-
-### `textures`, `sounds`, `media`
+### `textures`, `sounds`, `media`, `models`, `locale`
Media files (textures, sounds, whatever) that will be transferred to the
-client and will be available for use by the mod.
+client and will be available for use by the mod and translation files for
+the clients (see [Translations]).
-### `locale`
+It is suggested to use the folders for the purpous they are thought for,
+eg. put textures into `textures`, translation files into `locale`,
+models for entities or meshnodes into `models` et cetera.
-Translation files for the clients. (See [Translations])
+These folders and subfolders can contain subfolders.
+Subfolders with names starting with `_` or `.` are ignored.
+If a subfolder contains a media file with the same name as a media file
+in one of its parents, the parent's file is used.
Naming conventions
------------------