RedstoneChips

pixel

Changes dye color of any wool block placed in a 3x3x3 cube around the interface block.

When the clock pin (input 0) is set to HIGH, the circuit will update wool color according to the value of the input pins.

There are two ways to use this circuit.

When the last sign argument is a broadcast channel name (i.e. not a color name). The pixel is set to receive new data from the selected channel. In this operation mode it’s possible to use a transmitter to set the pixel’s color wirelessly. The transmitted bits should not include a clock value, starting at bit 0 with the pixel color or index. You can build the chip without any inputs in this mode. The channel name can specify a start bit using the syntax <channel name>:<start bit>. When used, the pixel will receive data from this bit in the channel.

The default wool painting range is 3 blocks away from the interface blocks. To use a different range add a d{<distance>} or dist{<distance>} argument to the chip sign. For example adding a dist{1} argument will make the pixel only paint blocks that are directly attached to its interface block. The distance argument is limited to 7 blocks by default. To change this, use /rcprefs pixel.maxDistance <distance>.

It’s possible to build the chip without a clock pin when only 1 data pin is used.

Note that wool blocks that are not attached directly or indirectly (through other wool blocks) to an interface block will not be colored even if they are within range.

source code


Colors and IDs (Color names are case insensitive)

I/O setup

Sign text

  1. pixel
  2. [color] ... [color]
  3. [dist{<distance>}] (optional)
  4. [broadcast-channel] (optional. must be the last argument)

pixel chip

Version history: Added to BasicCircuits 0.6

Fork me on GitHub