Add a new block: Crystal Lamp
It's texture's color is based on it's RGB values. For example, (0, 0, 0) for black, (255, 0, 0) for red.
It accept redstone pulse as input (like copper bulb), and will change R or G or B value based on redstone strengh.
When you first give a pulse, crystal lamp will change it's R value. The next pluse will change it's G value, then B value, then back to R value.
The value get from redstone strengh is as below:
[value] = round(([redstone strengh] - 1) * 255 / 14)
So redstone strengh 1 result in value 0, and redstone strengh 15 result in value 255.
The total color combination is 15^3 = 3375
Crystal lamps are useful to make colorful displayers, which can be use in computer monitors.
Please sign in to leave a comment.
0 Comments