User Tools

Site Tools


Sidebar



Minetest Forum
Content Database
Git Repository
Bug Tracker
Website

usage:nodes:atc_rail

LuaAutomation ATC rail

Properties

Mod: advtrains_luaautomation
Node name: advtrains_luaautomation:dtrack_placer
Other names:

  • advtrains_luaautomation:dtrack_st
  • advtrains_luaautomation:dtrack_st_30
  • advtrains_luaautomation:dtrack_st_45
  • advtrains_luaautomation:dtrack_st_60

Craft recipe

This node has no craft recipe.

Extended description

  • When the rail is first built, this rail node does nothing. But once right-clicking (or double tapping on Android) the node, a formspec displays, allowing you to write Lua code for the current node.
  • Interacting with the ATC rail requires the atlatc privilege.
  • The code in the ATC rail is executed when an event is fired. See Events for a list of events this node supports.
  • This node can be rotated by the Trackworker.
  • Only straight nodes are supported. You can't put this node on a curve or as a switch.
  • This node is an active component.

Operation

The LuaATC Rail is an active LuaATC component. It holds Lua code that is executed on specific Events, and interacts with the world using the LuaATC Programming Interface.

Every LuaATC rail must belong to an Environment. You can select the active environment using the dropdown on the top left.

Note: you have to create an environment before LuaATC components can be used. See Creating an Environment.

API

For details how to program LuaATC rails, refer to the Lua ATC section:

Trivia

The LuaAutomation ATC rail has the same texture as the ATC controller rail, but its functions are different.

usage/nodes/atc_rail.txt · Last modified: 2021-04-28 14:39 by orwell