Go to file
Emojigit 99b1477ca7 Merge branch 'fork-20210422-hud' into fork-master 2021-04-22 19:39:40 +08:00
textures Initial public release 2017-02-05 22:40:43 +00:00
LICENSE.txt Initial public release 2017-02-05 22:40:43 +00:00
README.md Fix screenshot URL 2017-02-05 22:44:14 +00:00
characters Initial public release 2017-02-05 22:40:43 +00:00
depends.txt Initial public release 2017-02-05 22:40:43 +00:00
init.lua Merge branch 'fork-20210422-hud' into fork-master 2021-04-22 19:39:40 +08:00
screenshot.png Initial public release 2017-02-05 22:40:43 +00:00

README.md

Textline

This is a Minetest mod that adds a text screen that is three blocks wide and is controlled with Digilines. It works very similarly to the LCD screen that comes with Digilines, but is meant to be readable from farther away.

Screenshot

Features

  • Dimensions: 3x1
  • Always stands vertically (can't be floor- or ceiling-mounted)
  • Four lines of orange text with 27 characters each, on a black background
  • Explicit line breaks with the newline character (\n) or the pipe (|) character. No text wrapping, for maximum control of the output.
  • Memory: the display "remembers" what it was displaying across server shutdowns. No need to constantly refresh its contents.
  • Optimized for frequent refreshes: its contents can change every second without excessive object generation.

Installing

Just install it like any other Minetest mod.

  1. Download

  2. Extract the ZIP into the Minetest mods folder (usually mods);

  3. Rename the textline-master folder to textline;

  4. This mod depends on Digilines, make sure you have it installed;

  5. In Minetest, enable the mod in the world settings.

Usage

A display consists of three separate nodes that must be placed individually. The center node is responsible for displaying the text it receives through Digilines; the two blocks to the sides make the rest of the background for the display.

The background node appears in the inventory as an orange square with "BKG" written on it. The center node appears as "TXT".

Digilines should be connected to the "TXT" block. You can configure its channel by clicking with the place/use button on them (default: right-click). Then you can just use it as a standard Digilines receiver. For example, for a screen running on channel test, you could execute the following code on a connected LuaController:

digiline_send("test", "This is a test\nThis is the second line\nThird line\nFourth line")

License

See LICENSE.txt