Train time slot - ShadowJonathan/ByteCart GitHub Wiki

The train time slot is a parameter that defines the maximum interval between 2 wagons of the same train.

Any cart following a cart, marked as a train or part of a train, within the time slot will be considered part of the train. Any cart that is not in betweentimes is not part of the preceeding train. All ByteCart devices are aware of trains and will not change position when a train is passing.

If a wagon is accidentaly delayed, it is no more in betweentimes and the train may be eventually broken. The broken part will eventually turn zombie carts (i.e. with no destination) and will be discarded in garbage collector. This thing happens when the world unloads: for unknowwn reasons, some carts are delayed when the last player logouts.

The train time slot is 14 server ticks, about 0.7 sec (5,60 m at a speed of 8 m/s).

Be careful : a train or a cart can "catch" another train or cart if moving too close, leaving some possibility of "cart hijacking" in the network.

A station like the 5-cart train station can be used to prepare a train before start, or receiving a train.