-
Notifications
You must be signed in to change notification settings - Fork 9
Train time slot
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, possibly delaying operations.
If a wagon is accidentaly delayed, it is no more in betweentimes and a ByteCart device may eventually break the train. The broken part will eventually turn zombie carts (i.e. with no destination) and will be discarded in garbage collector.
The train time slot is 14 server ticks, about 0.7 sec.
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.