Difference between revisions of "TrainCarts/Signs/Destination"
m (1 revision imported) |
(Marked this version for translation) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | [[TrainCarts/Signs|« Go back]] | + | <languages/> |
+ | <translate> | ||
+ | <!--T:1--> | ||
+ | [[Special:MyLanguage/TrainCarts/Signs|« Go back]] | ||
− | |||
− | + | == Introduction == <!--T:2--> | |
− | == Syntax == | + | <!--T:3--> |
+ | Destination signs map destinations under a name, which are used in the [[Special:MyLanguage/TrainCarts/PathFinding|path finding]] logic. When a train tries to reach a certain destination and it has this name set, the plugin knows what tracks to switch. Other than a marker, it can also set a new destination on the train when clicked, powered by redstone or when a train enters the sign. | ||
+ | |||
+ | |||
+ | == Syntax == <!--T:4--> | ||
+ | |||
+ | </translate> | ||
{{sign|[train]|destination|centralstation|subway_1}} | {{sign|[train]|destination|centralstation|subway_1}} | ||
+ | <translate> | ||
+ | <!--T:5--> | ||
'''Second line:''' ''destination'' | '''Second line:''' ''destination'' | ||
+ | <!--T:6--> | ||
'''Third line:''' ''Case-sensitive destination name'' | '''Third line:''' ''Case-sensitive destination name'' | ||
+ | <!--T:7--> | ||
'''Fourth line:''' ''Case-sensitive destination name to set on the train'' | '''Fourth line:''' ''Case-sensitive destination name to set on the train'' | ||
+ | <!--T:8--> | ||
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>. | 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>. | ||
+ | <!--T:9--> | ||
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: | 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 train has no destination set | ||
Line 26: | Line 40: | ||
− | === Remote Control === | + | |
− | [[TrainCarts/Signs#Remote_Control|Remote Control]] | + | === Remote Control === <!--T:10--> |
+ | |||
+ | <!--T:11--> | ||
+ | [[Special:MyLanguage/TrainCarts/Signs#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: | You can remotely set destinations on trains. Say your train is called ''train01'', then you use the following on the sign: | ||
+ | </translate> | ||
{{sign|[train train01]|destination|subway|bridge}} | {{sign|[train train01]|destination|subway|bridge}} | ||
+ | <translate> | ||
+ | </translate> |
Latest revision as of 17:36, 8 February 2021
Introduction
Destination signs map destinations under a name, which are used in the path finding logic. When a train tries to reach a certain destination and it has this name set, the plugin knows what tracks to switch. Other than a marker, it can also set a new destination on the train when clicked, powered by redstone or when a train enters the sign.
Syntax
Second line: destination
Third line: Case-sensitive destination name
Fourth line: Case-sensitive destination name to set on the train
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
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: