Overview
The Red Switch functions similarly to a Minecraft Lever. It can be toggled on or off by right-clicking the knob.
Right-clicking any other part will change the output pin configuration, where Pin Mark A shows the loctation of outputs.
Crafting
| Ingredients | RedCu Crafter Recipe |
| 1 Smooth Stone Plate | |
| 1 Redstone Dust | |
| 1 Stick |
Adventure Mode
While in adventure mode, /redstonecg_adventure controls:
/redstonecg_adventure valueConfig false- Locks the switch./redstonecg_adventure pinConfig false- Disables Pin Mark configuration.
Text
A text can be written on the block with Formatting Notation by changing the item name with an Anvil.
The text will always appear on the bases top surface above the knob unless the text is formatted as multiline with \p.
In that case, first and last lines will always be above and below the knob and the rest will be on the knobs top surface.
Text will be scaled to fit said regions.
Data
Block State
Registry name: redstonecg:red_switch
Block properties:
facing(down|north|east|south|west|up): sets the direction the block's bottom face is facing.rotation(north|east|south|west): rotates the block around its local Y-axis (0°, 90°, 180°, 270°).waterlogged(false|true): determines whether the block is waterlogged.connection(0|1|2|3|4|5|6|7|8|9|10|11|12|13|14): sets Pin Mark configuration.state(false|true): determines whether the block is off or on.
Block Entity
Structure:
-
id: block entity identifier -redstonecg:red_toggle -
x: X coordinate of the block entity. -
y: Y coordinate of the block entity. -
z: Z coordinate of the block entity. -
CustomName(Optional): custom name of the block and displayed text.
Item
Structure (1.20.4 and older):
-
id: item identifier -redstonecg:red_switch -
Count: the amount of items in this stack. -
tag(Optional): additional item data.-
display(Optional): item display data.-
Name: Composed text used for the item name and as displayed text.
-
-
BlockParameterSet(Optional): set of parameters for placing a block.-
output: used by Control Panel Panel to store the output signal state.
-
-
Structure (1.20.6 and newer):
-
id: item identifier -redstonecg:red_switch -
Count: the amount of items in this stack. -
components(Optional): item data components.-
minecraft:custom_name(Optional): Composed text used for the item name and as displayed text. -
minecraft:custom_data(Optional): custom item data.-
BlockParameterSet(Optional): set of parameters for placing a block.-
output: used by Control Panel Panel to store the output signal state.
-
-
-
Version Log
| Version | Description |
| 0.3.2 | Introduced. |
| 0.3.3 | A text can be written on the block. |