Go to file
Pedro Gimeno 984b0feb5c Change recipe to one that makes better sense, using dyes. 2017-12-22 14:14:43 +01:00
textures Add copyright to all files; modify textures a bit 2017-12-21 14:20:11 +01:00
.gitattributes Add .gitattributes 2017-12-21 12:51:42 +01:00
LICENSE.md Add copyright to all files; modify textures a bit 2017-12-21 14:20:11 +01:00
README.md Change "l" and "r" to upper case, to avoid confusion, and fix README. 2017-12-21 14:24:30 +01:00
depends.txt Change recipe to one that makes better sense, using dyes. 2017-12-22 14:14:43 +01:00
init.lua Change recipe to one that makes better sense, using dyes. 2017-12-22 14:14:43 +01:00

README.md

Digiplay

This adds some interesting items to the Digilines mod.

Multicolour Light block

This block can be controlled and read via a digiline. The channel can only be configured once; to change it, the node must be dug and placed again. Anyone can set it, not just the placer. The channel will be a string, even when digits are entered. An empty channel name is not allowed.

The digiline signal must be a string with one of these formats:

  • "on" - light on
  • "off" - light off
  • "#rgb" - change colour (3 hex digits)
  • "#rrggbb" - colour (6 hex digits)
  • "on#rgb"
  • "off#rgb"
  • "on#rrggbb"
  • "off#rrggbb" - change both light on/off status and colour

Despite accepting any hex colours, due to Minetest limitations only 125 are possible, which are all possible combinations of values 00, 40, 80, C0 and FF in each of R, G and B (values 00-33 count as 00, values 34-66 count as 40, values 67-99 count as 80, values 9A-CC count as C0, and values CD-FF count as FF)

After being configured, it will send on the selected channel the string "L <playername>" when the node is punched (L for left-clicked) and the string "R <playername>" when the node is right-clicked (with the actual player's name, of course).