|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.
This page is about how to create a block which change color each time it is powered. The method described in this example makes use of multiple textureindex values. Use the following template:
name="example"; id=230; type="normal"; texturefile="customstuff.png"; textureindex=9; damagevalues=1; name1="example"; texturefile1="customstuff.png"; textureindex1=10;
Now to make it react to redstone:
activated="world.setBlockMetadata(origin, 1);"; deactivated1="world.setBlockMetadata(origin, 0);";
The block in this example will switch from textureindex 9 to textureindex 10 when a redstone current is applied. When the block is activated with redstone, the block will change to a block with the same id but with a damage value of 1. When the 'activated' block loses its redstone current and 'deactivated' it will turn back into the first block that had no id value. This allows you to easily switch between two blocks or two colors with the help of some redstone. Change this if you want.