For Information on Directional Textures in Custom Stuff 2, see textureFile.
|Custom Stuff 1
Information presented below this line is outdated syntax or information used for Custom Stuff 1. It will not work with Custom Stuff 2.
There are five attributes that govern adding textures to specific sides of a block. These work in exactly the same way that the textureindex attribute does, with the number corresponding to a specific tile in the texturefile.
The difference is that while textureindex is an attribute that covers all sides, the five attributes listed below only govern one single side each. This means that if all five of these attributes are used, textureindex defines the texture on the bottom of the block as the bottom is the only face not specifically defined.
The five attributes are:
To set these attributes, add the following lines to the .block file, changing the numbers to the textureindex number you want for that face.
textureindextop=21; textureindexnorth=22; textureindexsouth=23; textureindexeast=24; textureindexwest=25;
These attributes override textureindex in regards to the selected face. As such, you do not need to define all five attributes in a given .block file; only the ones you want to differ from textureindex. For example, if you want a block to look the same on every side except the top you can add only the textureindextop attribute to the file, and let textureindex define the other five sides.
It's important to note that each of these attributes always faces a specific way. You can't put them down at a different angle to change the orientation of the textures. This is how a crafting bench works: the saw and hammer will always be facing the same direction regardless of how you place it. Contrast this with a pumpkin which can face any direction given the proper placement.