Skip to content

addons2

joe7575 edited this page Jun 11, 2026 · 16 revisions

Lamps and blocks to control and monitor your machinery

Table of Contents

This extension provides Timer, Sequencer, Repeater, Gate, Door, Access Lock, Mesecons Converter and Lamps, all with tubelib communication support.

Tubelib Access Lock

The Access Lock block is a combination lock to open/close gates and doors (active for 4 seconds). The 4 digit code of the Lock and the destination block numbers of door/gate blocks can be configured after placement.

Tubelib Access Lock [tubelib_addons2:accesscontrol]

States:

  • none

Features:

  • sends "on"/"off" events
  • Programmer support (store node numbers)

Supported Commands:

  • none

Tubelib Door Block

The Door block is used to build larger gates together with the Gate Controller. All Door blocks obtain a unique number which is shown as block infotext. This number is entered into the Gate Controller to register the block. The texture of the Door block can be configured after placement with the right mouse button.

Note: Door blocks cannot be controlled directly via 'on'/'off' commands. They must be managed exclusively through a Gate Controller.

Tubelib Door Block [tubelib_addons2:doorblock]

States:

  • none

Features:

  • none

Supported Commands:

  • none

Tubelib Gate Block

The Gate block works in the same manner as the Door block and is used to build larger gates. All Gate blocks obtain a unique number which is shown as block infotext. This number is entered into the Gate Controller to register the block. The texture of the Gate block can be configured after placement with the right mouse button.

Note: Gate blocks cannot be controlled directly via 'on'/'off' commands. They must be managed exclusively through a Gate Controller.

Tubelib Gate Block [tubelib_addons2:gateblock]

States:

  • none

Features:

  • none

Supported Commands:

  • none

Tubelib Gate Controller

The Gate Controller manages up to 8 Door or Gate blocks. Enter the block numbers into the controller's configuration form and click "Save" to register them. To prevent blocks from being lost, the Gate Controller physically removes the registered blocks from the world and stores them in its internal inventory when the gate opens, and places them back when the gate closes.

  • 'on' command → opens the gate (removes all blocks into the internal inventory)
  • 'off' command → closes the gate (places all blocks back into the world)
  • "Load gate" button → opens the gate manually via the configuration form (same as 'on'); useful for the initial setup to verify all registered blocks are correctly recognized before automating the gate.

Tubelib Gate Controller [tubelib_addons2:gate_controller]

States:

Features:

  • none

Supported Commands:

  • "control": turn the device/block "on" or "off"
    • via SmartLine Controller: switch
    • via SaferLua Controller: $send_cmnd(num, text)

Tubelib Programmer

The Programmer is a tool to collect block numbers (right mouse button) from Door/Gate/Lamp or other blocks to program (left mouse button) Repeater blocks. This is especially useful if you want to switch on/off many block at the same time like for street lights.

Tubelib Programmer [tubelib_addons2:programmer]

States:

  • none

Features:

  • none

Supported Commands:

  • none

Tubelib Repeater

The Repeater is a multiplier block, sending received commands to all connected blocks. The list of destination block numbers has to be configured, but can easily programmed by means of the Programmer.

Tubelib Repeater [tubelib_addons2:repeater]

States:

  • none

Features:

  • Programmer support (store node numbers)

Supported Commands:

  • none

Tubelib Logic Not

The "Logic Not" inverts the received on/off command and send it to all connected blocks. The list of destination block numbers has to be configured, but can easily programmed by means of the Programmer.

Tubelib Logic Not [tubelib_addons2:logic_not]

States:

  • none

Features:

  • Programmer support (store node numbers)

Supported Commands:

  • none

Tubelib Timer

The Timer (in combination with Repeater blocks) can be used to turn e.g. the street lights on/off.

Here the Repeater (with number 0123) and with it, the lamps behind the Repeater are switched on at 6 o'clock in the morning and switched off 8 o'clock in the evening. The timer checks the time every few seconds. If the block was just loaded, the timer will check the last 4 hours for commands.

Tubelib Timer [tubelib_addons2:timer]

States:

Features:

  • sends "on"/"off" events

Supported Commands:

  • "control": turn the device/block "on" or "off"
    • via SmartLine Controller: switch
    • via SaferLua Controller: $send_cmnd(num, text)

Tubelib Sequencer

The Sequencer block allows to define sequences of on/off commands with time delays in between.

For this purpose, a sequence of up to 8 steps can be programmed, each with destination block numbers, on/off command, and time gap to the next step in seconds. The Sequencer can run endless or only once and can be switches on/off by other blocks.

In this example a lamp is switched on/off every 2 seconds (don't forget so click "Run endless") The Sequencer allows also smaller times like 0.2 sec, but between the last and the first rule a delay of 1 sec is needed (to prevent overload situations).

Tubelib Sequencer [tubelib_addons2:sequencer]

States:

Features:

  • sends "on"/"off" events

Supported Commands:

  • "control": turn the device/block "on" or "off"
    • via SmartLine Controller: switch
    • via SaferLua Controller: $send_cmnd(num, text)

Tubelib Mesecons Converter

Converter between Mesecons and Tubelib commands with Programmer support. Each mesecons signal will be translated into "on"/"off" commands and vice versa.

Tubelib Mesecons Converter [tubelib_addons2:mesecons_converter]

States:

  • none

Features:

  • sends "on"/"off" events
  • Programmer support (store node numbers)

Supported Commands:

  • none

Tubelib Color Lamp

The Color Lamp is available in two version, with and without unifieddyes support.

If unifieddyes is not installed, the block color can be configured after block placement with the right mouse button. In this case 12 different colors available.

Tubelib Color Lamp [tubelib_addons2:lamp]

States:

Features:

  • none

Supported Commands:

  • "control": turn the device/block "on" or "off"
    • via SmartLine Controller: switch
    • via SaferLua Controller: $send_cmnd(num, text)

Invisible Lamp

Standard lamps are not bright enough, to illuminate large rooms. By means of the invisible helper lamp to be placed on different positions, the illuminated space can be enlarged.

Tubelib Invisible Lamp [tubelib_addons2:invisiblelamp]

States:

Features:

  • none

Supported Commands:

  • "control": turn the device/block "on" or "off"
    • via SmartLine Controller: switch
    • via SaferLua Controller: $send_cmnd(num, text)

Tubelib Ceiling Lamp

Ceiling lamp with tubelib support.

Tubelib Ceiling Lamp [tubelib_addons2:ceilinglamp]

States:

Features:

  • none

Supported Commands:

  • "control": turn the device/block "on" or "off"
    • via SmartLine Controller: switch
    • via SaferLua Controller: $send_cmnd(num, text)

Tubelib Street Lamp

Street lamp with tubelib support.

Tubelib Street Lamp [tubelib_addons2:streetlamp]

States:

Features:

  • none

Supported Commands:

  • "control": turn the device/block "on" or "off"
    • via SmartLine Controller: switch
    • via SaferLua Controller: $send_cmnd(num, text)

Tubelib Industrial Lamp 1

Industrial lamp with tubelib support.

Tubelib Industrial Lamp 1 [tubelib_addons2:industriallamp1]

States:

Features:

  • none

Supported Commands:

  • "control": turn the device/block "on" or "off"
    • via SmartLine Controller: switch
    • via SaferLua Controller: $send_cmnd(num, text)

Tubelib Industrial Lamp 2

Industrial lamp with tubelib support.

Tubelib Industrial Lamp 2 [tubelib_addons2:industriallamp2]

States:

Features:

  • none

Supported Commands:

  • "control": turn the device/block "on" or "off"
    • via SmartLine Controller: switch
    • via SaferLua Controller: $send_cmnd(num, text)

Clone this wiki locally