summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorHugues Ross <hugues.ross@gmail.com>2020-08-04 14:12:47 -0400
committerGitHub <noreply@github.com>2020-08-04 20:12:47 +0200
commit93ecc589bc49a80187705f6e06df23a71263d3d7 (patch)
treeffb4cacc13843f2b7ef7cb5fcc192c0dfb3816d4 /doc
parentd22fd6fc348ecf393f535c9b172410f4a82a2d52 (diff)
downloadminetest-93ecc589bc49a80187705f6e06df23a71263d3d7.tar.gz
minetest-93ecc589bc49a80187705f6e06df23a71263d3d7.tar.bz2
minetest-93ecc589bc49a80187705f6e06df23a71263d3d7.zip
Implement override.txt support for special tiles (#10140)
Add override targets for all special_tiles entries in node definitions, allowing texture packs to replace these textures. This makes overrides work properly with a variety of drawtypes. The targets are named special1 through special6, covering the the current length of the special_tiles array.
Diffstat (limited to 'doc')
-rw-r--r--doc/texture_packs.txt18
1 files changed, 17 insertions, 1 deletions
diff --git a/doc/texture_packs.txt b/doc/texture_packs.txt
index 79d65a339..8af2cbad6 100644
--- a/doc/texture_packs.txt
+++ b/doc/texture_packs.txt
@@ -195,11 +195,27 @@ Here are targets you can choose from:
| bottom | y- face |
| sides | x-, x+, z-, z+ faces |
| all | All faces. You can also use '*' instead of 'all'. |
+| special1 | The first entry in the special_tiles list |
+| special2 | The second entry in the special_tiles list |
+| special3 | The third entry in the special_tiles list |
+| special4 | The fourth entry in the special_tiles list |
+| special5 | The fifth entry in the special_tiles list |
+| special6 | The sixth entry in the special_tiles list |
| inventory | The inventory texture |
| wield | The texture used when held by the player |
Nodes support all targets, but other items only support 'inventory'
-and 'wield'
+and 'wield'.
+
+### Using the special targets
+
+The special* targets only apply to specific drawtypes:
+
+* `flowingliquid`: special1 sets the top texture, special2 sets the side texture
+* `allfaces_optional`: special1 is used by simple mode, see below
+* `glasslike_framed`: When containing a liquid, special1 sets the liquid texture
+* `glasslike_framed_optional`: Same as `glasslike_framed`
+* `plantlike_rooted`: special1 sets the plant's texture
Designing leaves textures for the leaves rendering options
----------------------------------------------------------