Block Attributes

textureFile

This attribute defines the texture file that the block uses. An example of such a texture file is the terrain.png in the minecraft.jar. If you want to use textures from the minecraft.jar or from other mods, the given value has to start with a '/'. If the given value doesn't start with a '/', it will use the texture from the mod's texture directory (the directory with the same name as the mod's directory).

Examples

// Default value
// uses the terrain.png from the minecraft.jar
textureFile = "/terrain.png";

// uses the myBlock.png from the texture directory of your mod
textureFile = "myBlocks.png";