====== LuaATC rail ====== {{ :usage:nodes:advtrains_dtrack_atc_placer.png?80 |}} ===== Properties ===== Mod: ''[[usage:mods#advtrains_luaautomation|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 ''[[usage:privileges:atlatc|atlatc]]'' privilege. * The code in the ATC rail is executed when an event is fired. See [[#events|Events]] for a list of events this node supports. * This node can be rotated by the [[usage:tools:trackworker|Trackworker]]. * Only straight nodes are supported. You can't put this node on a curve or as a switch. * This node is an [[usage:nodes#component_types|active component]]. ===== Operation ===== The LuaATC Rail is an active LuaATC component. It holds Lua code that is executed on specific [[usage:atlatc:events]], and interacts with the world using the [[usage:atlatc:api]]. Every LuaATC rail must belong to an [[usage:atlatc:environment|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 [[usage:atlatc:environment#Creating an Environment]].// ===== API ===== For details how to program LuaATC rails, refer to the [[usage:atlatc:start]] section: {{indexmenu>usage:atlatc}} ===== Trivia ===== The LuaAutomation ATC rail has the same texture as the [[usage:nodes:atc_controller|ATC controller rail]], but its functions are different. A patch has been posted on the [[:usage:mailing_list|Mailing List]], and is awaiting inclusion.