summaryrefslogtreecommitdiff
path: root/README
blob: 34c03d3d6080f8d078ba58f8b24bdd24be25b04a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
RGB Lightstones for Minetest

License:
---Code: WTFPL
---Textures: WTFPL (made by VanessaE)

Depends: mesecons_lightstone, digilines?

Instructions (with digilines):

* Grab one from the creative inventory, or craft one:
	nothing		green lightstone	nothing
	red lightstone	luacontroller		blue lightstone
	nothing		digiline		nothing

or, if you don't have luacontrollers:

	nothing		green lightstone	nothing
	red lightstone	mesecon			blue lightstone
	nothing		mesecon			nothing

* Place the thing
* Right-click and set a channel
* Send a digilines message to it on that channel with the color you want (choices listed below)

Instructions (without digilines): 

Grab the one you want from the creative inventory and place it. Survival mode is not yet supported without digilines.


Colors:

off, black, blue, brown, cyan, darkblue, darkcyan, darkgray, darkgreen, darkmagenta, darkred, gray, green, magenta, red, white, yellow

Adding more colors:

Provide a texture named "rgblightstone_color.png" (where "color" is the color you want to add) and call rgblightstone.add(color)

Group addressing mode:

If you are building something with large numbers of these things, set them all to the same channel, set X and Y addresses on each, and send nested tables (Y on the outside) with colors for all of them.
For example, given this display:

X=1 Y=1     X=2 Y=1

X=1 Y=2     X=2 Y=2

to make it show:

red     green
blue    yellow

send this:

{{"red","green"},
{"blue","yellow"}}