Overview
Colorful Lamp is an indicator block that changes its color based on supplied Redstone signal.
The signal can be mapped to Color Code and equivalent Stained Glass Pane used on Colored Lamp:
| Signal Strength | Equivalent Stained Glass Pane | Color Code |
|---|---|---|
| 0 | White Stained Glass Pane | #FFFFFF |
| 1 | Orange Stained Glass Pane | #FF681F |
| 2 | Magenta Stained Glass Pane | #FF00FF |
| 3 | Light Blue Stained Glass Pane | #9AC0CD |
| 4 | Yellow Stained Glass Pane | #FFFF00 |
| 5 | Lime Stained Glass Pane | #BFFF00 |
| 6 | Pink Stained Glass Pane | #FF69B4 |
| 7 | Gray Stained Glass Pane | #808080 |
| 8 | Light Gray Stained Glass Pane | #D3D3D3 |
| 9 | Cyan Stained Glass Pane | #00FFFF |
| 10 | Purple Stained Glass Pane | #A020F0 |
| 11 | Blue Stained Glass Pane | #0000FF |
| 12 | Brown Stained Glass Pane | #8B4513 |
| 13 | Green Stained Glass Pane | #00FF00 |
| 14 | Red Stained Glass Pane | #FF0000 |
On Redstone signal 15, equivalent stained glass pane is White Stained Glass Pane (#FFFFFF), but the equivalent Redstone signal applied to Colored Lamp is 0. It also does not emit light when Redstone signal 15 is applied.
Crafting
| Ingredients | Crafting Recipe |
| 3 Colored Lamps | |
| 1 Red Stained Glass Pane | |
| 1 Green Stained Glass Pane | |
| 1 Blue Stained Glass Pane |
Data
Block State
Registry name: redstonecg:colorful_lamp_indicator
Block properties:
power(0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15): sets color.
Block Entity
Structure:
-
id: block entity identifier -redstonecg:default_colored_lamp -
x: X coordinate of the block entity. -
y: Y coordinate of the block entity. -
z: Z coordinate of the block entity. -
color(length of 3): The color of this lamp. Overwritten each time block state propertypowerchanges.
Item
Structure (1.20.4 and older):
-
id: item identifier -redstonecg:colorful_lamp_indicator -
Count: the amount of items in this stack. -
tag(Optional): additional data.-
BlockParameterSet(Optional): set of parameters for placing a block.-
power(Optional): Used for Control Panel Panel to store selected color. -
color(Optional): Used for Control Panel Panel to store current encoded RGB888 color.
-
-
Structure (1.20.6 and newer):
-
id: item identifier -redstonecg:colorful_lamp_indicator -
Count: the amount of items in this stack. -
components(Optional): item data components.-
minecraft:custom_data(Optional): custom data.-
BlockParameterSet(Optional): set of parameters for placing a block.-
power(Optional): Used for Control Panel Panel to store selected color. -
color(Optional): Used for Control Panel Panel to store current encoded RGB888 color.
-
-
-
Version Log
| Version | Description |
| 0.3.0 | Introduced. |
| 0.3.4 | Removed block entity renderer, so block renders just like a normal block. |