//Detector
Jump to navigation
Jump to search
(Created page with "'''第四行:'''语句2") |
(Created page with "== 放置 ==") |
||
| Line 21: | Line 21: | ||
{{sign|[train]|detector (name)|o@player1|tag1}} | {{sign|[train]|detector (name)|o@player1|tag1}} | ||
若第三行和第四行留空,则当检测器发现列车时会将拉杆切换为开启状态。可在 '''detector'''一词后面随意添加一个名称,以确保两个检测器能互相识别到彼此(两个检测器名称要相同)。 | |||
== 放置 == | |||
= | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
Revision as of 03:08, 28 December 2025
介紹
檢測器與轉轍器非常相似,兩者的區別在於:
- 檢測器不切換軌道。
- 檢測器可檢測多條軌道。
可用檢測器來檢測某段長軌道上的某個列車。例如若軌道被佔用,可用檢測器來停止生成列車,或使列車駛入其他替代路線。
語法
第一行:[train] 或 [cart],取決於你想要檢測的是一整列車還是單個礦車
第二行:detector <名稱>(可選)
第三行:語句1
第四行:語句2
若第三行和第四行留空,則當檢測器發現列車時會將拉杆切換為開啟狀態。可在 detector一詞後面隨意添加一個名稱,以確保兩個檢測器能互相識別到彼此(兩個檢測器名稱要相同)。
放置
Placement is rather difficult, since you need to use pairs of detector signs, one on both ends of the track to detect. The detector signs have to face each other, or they will have a hard time finding each other. Both signs are operated simultaneously, so you can use both ends to toggle a lever, using 4 statements in total. By adding multiple detector signs underneath one track you can expand the amount of statements.
Statements
On the third and fourth lines you can put the statements to evaluate.
