TrainCarts/Signs/Destination [ja]

From BergerHealer Wiki
Jump to navigation Jump to search
No edit summary
(Created page with "上の例では、目的地は<code>centralstation</code>となり、<code>centralstation</code>が目的地である列車はこの地点への道のりを自動で探索します。また同時に、ここを通過した列車の次の目的地は<code>subway_1</code>と設定し直されます。")
Line 16: Line 16:
'''四行目''':''列車に設定する目的地の名前。大文字と小文字を区別します。''
'''四行目''':''列車に設定する目的地の名前。大文字と小文字を区別します。''


<div lang="en" dir="ltr" class="mw-content-ltr">
上の例では、目的地は<code>centralstation</code>となり、<code>centralstation</code>が目的地である列車はこの地点への道のりを自動で探索します。また同時に、ここを通過した列車の次の目的地は<code>subway_1</code>と設定し直されます。
In the example above, the destination is <code>centralstation</code>, and any train with a destination of <code>centralstation</code> will find a path to the sign. Any train that passes over the sign will also have its destination set as <code>subway_1</code>.
</div>





Revision as of 06:46, 16 June 2026

Other languages:

概要

Destinationサインは経路探索ロジックを用い、設定された名前の『目的地』を探索し、道のりを決定します。列車が目的地に向けて進むとき、プラグインが自動で目的地へ向かうためにレールの分岐を切り替えます。マーカー以外にも、クリックやレッドストーン、看板のサインを用いて新しく目的地を設定できます。


記法

Signtemplate.png
[train]
destination
centralstation
subway_1


二行目目的地

三行目看板のある地点に設定する目的地の名前。大文字と小文字を区別します。

四行目列車に設定する目的地の名前。大文字と小文字を区別します。

上の例では、目的地はcentralstationとなり、centralstationが目的地である列車はこの地点への道のりを自動で探索します。また同時に、ここを通過した列車の次の目的地は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


Remote Control

Remote Control You can remotely set destinations on trains. Say your train is called train01, then you use the following on the sign:

Signtemplate.png
[train train01]
destination
subway
bridge