Difference between revisions of "Creating texture packs"

From Luanti Wiki
Jump to navigation Jump to search
(Replaced content with "[https://dev.luanti.org/creating-texture-packs/ This page has been moved to the Luanti Developer Wiki]")
Tag: Replaced
 
(21 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Languages}}
+
[https://dev.luanti.org/creating-texture-packs/ This page has been moved to the Luanti Developer Wiki]
[[Texture Packs|Texture packs]] are a simple folder containing image files named after the default ones.
 
 
 
The easiest way to create a texture pack is to copy the files from [http://github.com/minetest/minetest_game minetest_game] to get the file names of all the default textures.
 
 
 
Create a new folder to hold your new texture pack.
 
 
 
Under Windows, browse to your Minetest folder, enter the games/minetest_game folder, then hit <kbd>Ctrl</kbd>+<kbd>F</kbd> to invoke the search function. In the search box, enter “*.png” to find all the image files (or directly use the “Images” option in the search page).
 
 
 
Under Linux, it’s better to use the terminal. These commands should do the job:
 
 
 
$ TP_NAME=your-pack-name
 
$ cd ~/your/path/to/minetest
 
$ mkdir textures/$TP_NAME
 
$ find games/minetest_game/ -name '*.png' -exec cp '{}' "textures/$TP_NAME" ';'
 
 
 
Next, open your favorite image editor and edit the images in your texture pack folder, or create the images from scratch and save them over the original files. Any image editor that supports transparency (also called “alpha” or “mask”) should be OK.
 
 
 
The textures may be any size, but square images whose size is a power of 2 (16×16, 32×32, 64×64, 128×128, etc.) is preferred.
 
 
 
To use textures for sun and moon put sun.png and moon.png in your texture pack folder.<ref>[https://forum.minetest.net/viewtopic.php?f=18&t=9140&p=138865#p138865] Subject in the forum</ref><br />
 
If you want them to be available for all the texture packs (including default), you can put them in /textures/pack/base/<br />
 
If you want textures to be tinted, tonemaps have to be provided (512x1 px) named sun_tonemap.png and moon_tonemap.png<br />
 
 
 
Once you are finished creating your pack, compress the folder (not only the files inside) in a Zip archive, upload to the Web] ([http://mediafire.com Mediafire] and [http://dropbox.com Dropbox] are popular choices), and post your announcement to the [https://forum.minetest.net/viewforum.php?id=4 Texture Packs forum].
 
 
 
== Notes and References ==
 
<references />
 
[[Category:Tutorials]]
 
[[Category:Textures]]
 

Latest revision as of 19:27, 22 December 2024