Coded Control Panel

Coded Control Panel
Stackable
Yes(64)

Overview

The Coded Control Panel is a decorative block similar to the Control Panel, but it can host up to four functional items instead of one. Inserted items are rendered directly onto the surface of the panel while preserving their relevant functionality. See Control Panel Panels for a list of items that provide functionality when installed in a Coded Control Panel.

Internally, the Coded Control Panel utilizes the functionality of Binary Encoder and Binary Decoder to exchange information between its installed items and the external Redstone Dust or RedCu Wire network.

When a Redstone signal is provided to the Coded Control Panel, that signal is treated as a four-bit binary value and split into four separate channels. Each channel is then converted into a boolean Redstone signal, where 0 remains 0 and 1 becomes 15, and supplied to the corresponding installed item.

Likewise, when installed functional items provide boolean Redstone signals, those signals are encoded back into a single Redstone signal and output by the Coded Control Panel.

Control Panel Examples

Example

Consider a Coded Control Panel containing the following items:

  1. Red Button
  2. Red Switch
  3. Universal Indicator
  4. Flat Lamp Indicator

A Redstone signal of 5 is provided to Pin Mark A.

First, the signal is interpreted as a binary value: 0101

Next, each bit is converted into a boolean Redstone signal where 1 becomes 15 and 0 remains 0: 0 15 0 15

The channels are assigned in reverse order, resulting in:

  1. Red Button receives 15
  2. Red Switch receives 0
  3. Universal Indicator receives 15
  4. Flat Lamp Indicator receives 0

The Red Button and Red Switch ignore incoming Redstone signals, but the indicators react to them. The Universal Indicator displays a signal level of 15, while the Flat Lamp Indicator remains off.

Now suppose the Red Switch is toggled on and begins providing a Redstone signal of 15.

The items now provide:

  1. Red Button provides 0
  2. Red Switch provides 15
  3. Universal Indicator provides 0
  4. Flat Lamp Indicator provides 0

These values are converted into binary form where 15 becomes 1 and 0 remains 0: 0010

The binary value is then interpreted as a decimal Redstone signal, producing an output signal of 2 on Pin Mark A.

Be aware that both Redstone Dust and RedCu Wire always adopt the highest signal available to them. If a wire supplying a signal of 5 to the Coded Control Panel receives a signal of 2 in return, the wire remains at a signal level of 5 because 5 is greater than 2.

For this reason, it is recommended to use separate signal lines for signal providers and signal receivers. One Coded Control Panel can be dedicated to receiving signals, while another can be dedicated to providing signals.

If both providers and receivers must be placed on the same Coded Control Panel, use separate incoming and outgoing signal lines and place signal providers in the first slots while placing signal receivers in the last slots. This prevents receiver channels being overridden by stronger outgoing signals.

A Hexadecimal Indicator can be used for monitoring which channels are currently active.

GUI

GUI Menu

At the top of the GUI there are 4 circular control elements with inventory slots in the center where the functional items are placed. Only a single item is inserted from the held stack.

The circular control element is also used to rotate the functional item. Clicking the outer ring allows the item to be rotated with a precision of , while the inner ring rotates the item in steps of 15°. A red arrow indicates the current rotation of the item.

Above the player's inventory are three buttons that select the shape of the Coded Control Panel.

Two groups of buttons are located to the left and right of these shape selection buttons. These button groups are used to configure individual Pin Marks.

The left-side button group always controls the pin marks used by Shape 1 and Shape 2, while the right-side button group is only used by Shape 3.

When using Shape 3, the meaning of the button groups depends on the current orientation:

Configuration

Shift + right-click with an empty hand will change the shape of the block.

Using a Rotation Bracket rotates the block differently depending on the currently selected shape:

Right-clicking the block with any other item or an empty hand opens the configuration GUI.

After inserting items, changing their orientation or changing the shape, player can transfer the configuration to an Coded Control Panel item by right-clicking the Coded Control Panel block with Coded Control Panel item.

When the configuration is copied:

Placing the item as a block will apply the stored configuration to the newly placed Coded Control Panel. If the configuration includes items, the items from the players inventory will be transfered to the block if the player has the required items.

Crafting

Adventure Mode

While in adventure mode, /redstonecg_adventure controls:

Version Log

VersionDescription
0.3.3Introduced.