TrainCarts/控制牌/跳过
Jump to navigation
Jump to search
介绍
跳过牌使用类似于转辙器的语句来使列车跳过前方一个或多个控制牌。 例如,当某辆列车未设置目的地时,跳过牌可用于让列车跳过车站。
语法
[train]
skip 2 1
<statement 1>
<statement 2>
- First line: [train] or [cart]. When the sign to be skipped works on a per-cart basis, using [cart] instead of [train] can be better. In general [train] is all you'll need. Like with other signs, redstone power matters. This means the skip sign is only active when powered by redstone. You can use [+train] or [+cart] to always power it.
- Second line: skip, which without further arguments will skip the very next sign the train crosses. When followed by one number, the number sets the number of signs the train has to cross until the sign is skipped. When followed by a second number, the second number sets the number of signs to skip. In the example, a single sign will be skipped after having crossed two signs. A non-numeric sign filter can also be specified.
- Third and fourth lines: statements (AND-ed together) for when to activate the skip sign. It is possible to put | in front of the second statement so that the two are OR-ed together instead. Leaving both lines empty makes the skip sign activate all the time.
Filter
On the second line of the skip sign a filter can be added before any skip offsets/counts. This makes the skip mechanism only ignore signs whose second line starts with the filter specified. The filter is case-insensitive. For example, the following skip sign skips the very next station sign, but ignores non-station signs:
[+train]
skip station 0 1