TrainCarts/控制牌/目的地

From BergerHealer Wiki
Revision as of 06:15, 3 September 2024 by Halogly (talk | contribs)
Jump to navigation Jump to search
Other languages:
English • ‎中文(中国大陆)‎

« 返回


介绍

目的地控制牌(以下简称标牌)使用名称来代表目的地,并使用路径查找逻辑。当有一列车试图前往一个已设置了名称的目的地时,TC 会自动将列车导航到指定的目的地。除了作为标记以外,它也可以在点击、由红石激活或当列车经过标牌时为列车设置一个新目的地。


语法

Signtemplate.png
[train]
destination
centralstation
subway_1


第二行:destination

第三行:目的地名称,区分大小写。

第四行:设置列车的目的地名称,区分大小写。

In the example above, the destination is centralstation, and any train with a destination of centralstation will find a path to the sign. Any train that passes over the sign will also have its destination set as subway_1.


You can leave the third line blank to only let the sign set a new destination on the train. You can leave the fourth line blank to only use this sign for path finding. The destination is set on the train only if:

  • The train has no destination set
  • The destination sign is itself no destination
  • The destination sign is activated using Redstone power
  • The destination sign name is the same as the destination set on the train


远程控制

远程控制 你可以远程设置列车的目的地。假设某一列车名为 train01,你需要这样写:

Signtemplate.png
[train train01]
destination
subway
bridge