Repository navigation
Turntable Known behavior
Lycoris edited this page Nov 10, 2026
·
1 revision
-
There are no turntable events. Nothing is queued when a turn ends, poll
isTurning()orgetState(), see State snapshot. A 0.05 second sleep in the loop is one game tick, which is as often as anything can change. - The peripheral survives a chunk reload, the sub level id does not. Keep the handle, look the id up again each time you need it.
-
Priority: schedule mode, then manual turn, then sequence. A
turnBywhile a sequence runs cancels the sequence. Any turn at all while the list is thescheduleone is refused, the router controls the plate, see Schedule mode. -
turnTotakes the short way. Crossing 0 in either direction is fine, but if the plate must avoid a leg, useturnBywith an explicit sign. -
Angles have small rounding error. The plate steps by
getDegreesPerTick()per tick and takes a smaller last step, so a 90 degree turn lands within about 0.01 degrees. Compare angles with a tolerance, never with==. -
Disassembling zeroes the angle. After a
disassembleand a freshassemble, 0 means whatever the plate is pointing at now, not what it meant before.
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