Repository navigation
Turntable Assembly
True when the plate exists and the servo is holding it.
Assembles the blocks in front of the bearing into a plate. Returns true if it assembled, false if it was already assembled. Throws Create's message if the structure cannot be assembled, for example when it touches an unmovable block or an unloaded chunk.
if not turntable.isAssembled() then
local ok, err = pcall(turntable.assemble)
if not ok then print("cannot assemble: " .. err) end
endReturns the plate to the world at its current angle. Returns true if it disassembled, false if there was nothing assembled. This resets the angle to 0, and it clears any alignment.
The last assembly failure as text, or nil if the last attempt worked. The same message the bearing shows in the tooltip.
Start here
Reading the train
- Identity
- Motion
- State
- Station
- Signals
- Track ahead
- Orientation
- World position
- Carriages
- Consist wide cargo
Driving the train
Schedules
Doors and body
Links
The whole railway
Reacting to changes
Programs and reference
Start here
Controlling the plate
Automatic modes
Reading the turntable
Reference