CS1 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:



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.

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.