Difference between revisions of "TrainCarts/Signs/Skip/zh-cn"

From BergerHealer Wiki
Jump to navigation Jump to search
(Created page with "TrainCarts/控制牌/跳过")
 
(Created page with "« 返回")
Line 1: Line 1:
 
<languages/>
 
<languages/>
<div lang="en" dir="ltr" class="mw-content-ltr">
+
[[Special:MyLanguage/TrainCarts/Signs|« 返回]]
[[Special:MyLanguage/TrainCarts/Signs|« Go back]]
 
</div>
 
  
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
== 介绍 ==
== Introduction ==
 
</div>
 
  
 
<div lang="en" dir="ltr" class="mw-content-ltr">
 
<div lang="en" dir="ltr" class="mw-content-ltr">

Revision as of 12:34, 15 September 2024

Other languages:
English • ‎中文(中国大陆)‎

« 返回


介绍

Skip sign causes the train to skip one or more signs further up ahead based on statements similar to the switcher sign. It can be used to make trains skip a station sign when a certain destination is not set, for example.


Syntax

Signtemplate.png
[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:

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.