TrainCarts/Signs/Detector [zh]

From BergerHealer Wiki
Revision as of 03:08, 28 December 2025 by Eletronprocoress (talk | contribs) (Created page with "== 放置 ==")
Jump to navigation Jump to search
Other languages:

介绍

检测器与转辙器非常相似,两者的区别在于:

  • 检测器不切换轨道。
  • 检测器可检测多条轨道。

可用检测器来检测某段长轨道上的某个列车。例如若轨道被占用,可用检测器来停止生成列车,或使列车驶入其他替代路线。


语法

第一行:[train] 或 [cart],取决于你想要检测的是一整列车还是单个矿车

第二行:detector <名称>(可选)

第三行:语句1

第四行:语句2

Signtemplate.png
[train]
detector (name)
o@player1
tag1


若第三行和第四行留空,则当检测器发现列车时会将拉杆切换为开启状态。可在 detector一词后面随意添加一个名称,以确保两个检测器能互相识别到彼此(两个检测器名称要相同)。

放置

Two detector signs in operation

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.