texture_packs.txt 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. Minetest Texture Pack Reference
  2. ===============================
  3. Texture packs allow you to replace textures provided by a mod with your own
  4. textures.
  5. Texture pack directory structure
  6. --------------------------------
  7. textures
  8. |-- Texture Pack
  9. | |-- texture_pack.conf
  10. | |-- screenshot.png
  11. | |-- description.txt
  12. | |-- override.txt
  13. | |-- your_texture_1.png
  14. | |-- your_texture_2.png
  15. `-- Another Texture Pack
  16. ### Texture Pack
  17. This is a directory containing the entire contents of a single texture pack.
  18. It can be chosen more or less freely and will also become the name of the
  19. texture pack. The name must not be “base”.
  20. ### `texture_pack.conf`
  21. A key-value config file with the following keys:
  22. * `title` - human readable title
  23. * `description` - short description, shown in the content tab
  24. ### `description.txt`
  25. **Deprecated**, you should use texture_pack.conf instead.
  26. A file containing a short description of the texture pack to be shown in the
  27. content tab.
  28. ### `screenshot.png`
  29. A preview image showing an in-game screenshot of this texture pack; it will be
  30. shown in the texture packs tab. It should have an aspect ratio of 3:2 and a
  31. minimum size of 300×200 pixels.
  32. ### `your_texture_1.png`, `your_texture_2.png`, etc.
  33. Any other PNG files will be interpreted as textures. They must have the same
  34. names as the textures they are supposed to override. For example, to override
  35. the apple texture of Minetest Game, add a PNG file named `default_apple.png`.
  36. The custom textures do not necceessarily require the same size as their
  37. originals, but this might be required for a few particular textures. When
  38. unsure, just test your texture pack in-game.
  39. Texture modifiers
  40. -----------------
  41. See lua_api.txt for texture modifiers
  42. Special textures
  43. ----------------
  44. These texture names are hardcoded into the engine but can also be overwritten
  45. by texture packs. All existing fallback textures can be found in the directory
  46. `textures/base/pack`.
  47. ### Gameplay textures
  48. * `bubble.png`: the bubble texture when the player is drowning
  49. (default size: 12×12)
  50. * `bubble_gone.png`: like `bubble.png`, but denotes lack of breath
  51. (transparent by default, same size as bubble.png)
  52. * `crack_anylength.png`: node overlay texture when digging
  53. * `crosshair.png`
  54. * the crosshair texture in the center of the screen. The settings
  55. `crosshair_color` and `crosshair_alpha` are used to create a cross
  56. when no texture is found.
  57. * `object_crosshair.png`
  58. * the crosshair seen when pointing at an object. The settings
  59. `crosshair_color` and `crosshair_alpha` are used to create a cross
  60. when no texture is found.
  61. * `halo.png`: used for the node highlighting mesh
  62. * `heart.png`: used to display the health points of the player
  63. (default size: 12×12)
  64. * `heart_gone.png`: like `heart.png`, but denotes lack of health points
  65. (transparent by default, same size as heart.png)
  66. * `minimap_mask_round.png`: round minimap mask, white gets replaced by the map
  67. * `minimap_mask_square.png`: mask used for the square minimap
  68. * `minimap_overlay_round.png`: overlay texture for the round minimap
  69. * `minimap_overlay_square.png`: overlay texture for the square minimap
  70. * `no_texture_airlike.png`: fallback inventory image for airlike nodes
  71. * `object_marker_red.png`: texture for players on the minimap
  72. * `player_marker.png`: texture for the own player on the square minimap
  73. * `player.png`: front texture of the 2D upright sprite player
  74. * `player_back.png`: back texture of the 2D upright sprite player
  75. * `progress_bar.png`: foreground texture of the loading screen's progress bar
  76. * `progress_bar_bg.png`: background texture of the loading screen's progress bar
  77. * `moon.png`: texture of the moon. Default texture is generated by Minetest
  78. * `moon_tonemap.png`: tonemap to be used when `moon.png` was found
  79. * `sun.png`: texture of the sun. Default texture is generated by Minetest
  80. * `sun_tonemap.png`: tonemap to be used when `sun.png` was found
  81. * `sunrisebg.png`: shown sky texture when the sun rises
  82. * `smoke_puff.png`: texture used when an object died by punching
  83. * `unknown_item.png`: shown texture when an item definition was not found
  84. * `unknown_node.png`: shown texture when a node definition was not found
  85. * `unknown_object.png`: shown texture when an entity definition was not found
  86. * `wieldhand.png`: texture of the wieldhand
  87. Note: The default textures of `player.png`, `player_back.png` and `wieldhand.png`
  88. are placeholders intended to be overwritten by the game.
  89. ### Mainmenu textures
  90. * `menu_bg.png`: used as mainmenu background when the clouds are disabled
  91. * `menu_header.png`: header texture when no texture pack is selected
  92. * `no_screenshot.png`
  93. * texture when no screenshot was found for a texture pack or mod
  94. * `server_flags_creative.png`: icon for creative servers
  95. * `server_flags_damage.png`: icon for enabled damage on servers
  96. * `server_flags_favorite.png`: icon for your favorite servers
  97. * `server_flags_pvp.png`: icon for enabled PvP on servers
  98. ### Android textures
  99. * `down_arrow.png`
  100. * `left_arrow.png`
  101. * `right_arrow.png`
  102. * `up_arrow.png`
  103. * `drop_btn.png`
  104. * `fast_btn.png`
  105. * `fly_btn.png`
  106. * `jump_btn.png`
  107. * `noclip_btn.png`
  108. * `camera_btn.png`
  109. * `chat_btn.png`
  110. * `inventory_btn.png`
  111. * `rangeview_btn.png`
  112. * `debug_btn.png`
  113. * `gear_icon.png`
  114. * `rare_controls.png`
  115. Texture Overrides
  116. -----------------
  117. You can override the textures of nodes and items from a
  118. texture pack using texture overrides. To do this, create one or
  119. more files in a texture pack called override.txt
  120. Each line in an override.txt file is a rule. It consists of
  121. itemname target texture
  122. For example,
  123. default:dirt_with_grass sides default_stone.png
  124. or
  125. default:sword_steel inventory my_steel_sword.png
  126. You can list multiple targets on one line as a comma-separated list:
  127. default:tree top,bottom my_special_tree.png
  128. You can use texture modifiers, as usual:
  129. default:dirt_with_grass sides default_stone.png^[brighten
  130. Finally, if a line is empty or starts with '#' it will be considered
  131. a comment and not read as a rule. You can use this to better organize
  132. your override.txt files.
  133. Here are targets you can choose from:
  134. | target | behavior |
  135. |---------------|---------------------------------------------------|
  136. | left | x- face |
  137. | right | x+ face |
  138. | front | z- face |
  139. | back | z+ face |
  140. | top | y+ face |
  141. | bottom | y- face |
  142. | sides | x-, x+, z-, z+ faces |
  143. | all | All faces. You can also use '*' instead of 'all'. |
  144. | special1 | The first entry in the special_tiles list |
  145. | special2 | The second entry in the special_tiles list |
  146. | special3 | The third entry in the special_tiles list |
  147. | special4 | The fourth entry in the special_tiles list |
  148. | special5 | The fifth entry in the special_tiles list |
  149. | special6 | The sixth entry in the special_tiles list |
  150. | inventory | The inventory texture |
  151. | wield | The texture used when held by the player |
  152. Nodes support all targets, but other items only support 'inventory'
  153. and 'wield'.
  154. ### Using the special targets
  155. The special* targets only apply to specific drawtypes:
  156. * `flowingliquid`: special1 sets the top texture, special2 sets the side texture
  157. * `allfaces_optional`: special1 is used by simple mode, see below
  158. * `glasslike_framed`: When containing a liquid, special1 sets the liquid texture
  159. * `glasslike_framed_optional`: Same as `glasslike_framed`
  160. * `plantlike_rooted`: special1 sets the plant's texture
  161. Designing leaves textures for the leaves rendering options
  162. ----------------------------------------------------------
  163. Minetest has three modes for rendering leaves nodes if the node has the
  164. `allfaces_optional` drawtype.
  165. ### Fancy
  166. Uses the texture specified in the `tiles` nodedef field.
  167. The texture should have some transparent pixels and be in the RGBA format so
  168. that the transparent pixels can have color information.
  169. Faces of every leaves node are rendered even if they are inside a solid volume
  170. of leaves; this gives a dense appearance.
  171. ### Opaque
  172. Uses the texture specified in `tiles` but makes it opaque by converting each
  173. transparent pixel into an opaque pixel that uses the color information of that
  174. transparent pixel.
  175. Due to this the `tiles` texture format must be RGBA not 'indexed alpha' to allow
  176. each transparent pixel to have color information.
  177. The colors of the transparent pixels should be set for a good appearance in
  178. `opaque` mode. This can be done by painting the pixels the desired colors then
  179. erasing them. Then when saving the texture, use the 'save color information from
  180. transparent pixels' option (or equivalent).
  181. ### Simple
  182. Uses the texture specified in the `special_tiles` nodedef field if it exists, if
  183. not, the `tiles` texture.
  184. The `special_tiles` texture should have fewer transparent pixels than the
  185. `tiles` texture and be in the 'indexed alpha' format.
  186. This mode is between the other two in terms of appearance and rendering load.
  187. The nodes are rendered using the `glasslike` drawtype, only showing the surface
  188. faces for any solid volume of leaves, not the internal faces.
  189. Due to this the `tiles` texture might appear lacking in density, so optionally a
  190. `special_tiles` texture can be used to provide a texture with fewer transparent
  191. pixels for a denser appearance.