TrainCarts/Signs/Skip [zh]

From BergerHealer Wiki
Jump to navigation Jump to search
(Created page with "跳过控制牌使用类似于转辙器的语句来使列车跳过前方一个或多个控制牌。 例如某辆列车未设置目的地时,让列车跳过站点。")
(Created page with "* 第一行:'''[train]'''或'''[cart]'''。当需要以每辆矿车为基础跳过时,使用 [cart] 会比使用 [train] 更好。不过一般都使用 [train] 即可。与其他控制牌相同,需要红石激活。你可以使用 [+train] 或 [+cart] 来让跳过牌始终激活。 * 第二行:'''skip''',若不添加其他参数,则会让列车跳过下一个控制牌。若后只跟一个数值,则该数值表示列车在跳过前要经过的控制牌数量...")
Line 11: Line 11:




<div lang="en" dir="ltr" class="mw-content-ltr">
* 第一行:'''[train]'''或'''[cart]'''。当需要以每辆矿车为基础跳过时,使用 [cart] 会比使用 [train] 更好。不过一般都使用 [train] 即可。与其他控制牌相同,需要红石激活。你可以使用 [+train] [+cart] 来让跳过牌始终激活。
* 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.
* 第二行:'''skip''',若不添加其他参数,则会让列车跳过下一个控制牌。若后只跟一个数值,则该数值表示列车在跳过前要经过的控制牌数量(经过多少个控制牌才执行跳过)。若跟两个数值,则第二个数值表示要跳过的控制牌数量(要跳过多少个控制牌)。示例中,列车要经过两个控制牌,在第三个控制牌选择跳过。你还可以指定非数字符号过滤。
* 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.
* 第三行和第四行:[[Special:MyLanguage/TrainCarts/Signs/Statements|语句]](默认使用“与逻辑”)决定何时激活跳过牌。可以将“|”写在第二条语句的前面,这样两条语句将通过“或逻辑”连接在一起。若两行留空,则跳过牌始终运作。
* Third and fourth lines: [[Special:MyLanguage/TrainCarts/Signs/Statements|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.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">

Revision as of 19:18, 26 November 2025

Other languages:

介紹

跳過控制牌使用類似於轉轍器的語句來使列車跳過前方一個或多個控制牌。 例如某輛列車未設置目的地時,讓列車跳過站點。


語法

Signtemplate.png
[train]
skip 2 1
<statement 1>
<statement 2>


  • 第一行:[train][cart]。當需要以每輛礦車為基礎跳過時,使用 [cart] 會比使用 [train] 更好。不過一般都使用 [train] 即可。與其他控制牌相同,需要紅石激活。你可以使用 [+train] 或 [+cart] 來讓跳過牌始終激活。
  • 第二行:skip,若不添加其他參數,則會讓列車跳過下一個控制牌。若後只跟一個數值,則該數值表示列車在跳過前要經過的控制牌數量(經過多少個控制牌才執行跳過)。若跟兩個數值,則第二個數值表示要跳過的控制牌數量(要跳過多少個控制牌)。示例中,列車要經過兩個控制牌,在第三個控制牌選擇跳過。你還可以指定非數字符號過濾。
  • 第三行和第四行:語句(默認使用「與邏輯」)決定何時激活跳過牌。可以將「|」寫在第二條語句的前面,這樣兩條語句將通過「或邏輯」連接在一起。若兩行留空,則跳過牌始終運作。

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:

Signtemplate.png
[+train]
skip station 0 1

Example

Trains come from the left and first hit the powered ([+train]) skip sign. When the train does not have destination square_west set or ( | ) is empty, the skip sign is activated and skips the very next sign. In this case that's the station sign. As a result, trains not meant for this station will cross the station sign without being stopped for 5 seconds.