TrainCarts/Signs/Station [zh-cn]

From BergerHealer Wiki
Revision as of 03:12, 25 November 2025 by Eletronprocoress (talk | contribs) (Created page with "=== 第二行 ===")
Jump to navigation Jump to search
Other languages:

介紹

一輛列車停在車站牌的上方。

車站用於停止和啟動列車,可設置停止時間(以秒為單位)。車站會將紅石信號輸入的方向作為列車的啟動方向,當兩邊都有紅石信號輸入時,車站會自動設置列車的啟動方向。

語法

Signtemplate.png
[train]
station
5
continue


第一行

使用 [train] 時,列車的中心位置(比如列車中間的礦車)會停在車站牌的上方。當使用 [cart] 時,列車會立即停止,第一輛礦車會停在車站牌的上方。


第二行

Station followed up by an optional number. This number sets the distance to launch the trains at. The higher this number, the slower it will launch. Use only station to make the plugin calculate this distance automatically. Then it launches the train towards the first curved track piece up to 100 blocks away.

You can also specify a 'center offset' value, which changes where the train will stop on the station. This is done by specifying <distance>m, for example '20.5m'.

The below station sign will launch a train 30 blocks away, and center the train with a 12.5 block offset above the sign. The train waits for 10 seconds and then continues:

Signtemplate.png
[+train]
station 30 12.5m
10
continue

Third line

An optional delay in seconds. This delay is used when launching. For example, when the right side is powered and a delay of 3 seconds is set, and a train enters, the train will wait for 3 seconds and then launch into the powered direction.


Fourth line

Sets the mode used when both sides are powered. The station sign will launch trains into the direction that is powered. If the sign receives no power whatsoever, it is not active and trains will travel right through. The inverted redstone option ([!train]) is still active here, so if power is inverted and the sign receives no power, it is as if all sides a powered.

The station will hold the train forever if both sides are powered, unless one of the below four types is set on the fourth line:

Sign Result
Sign 1.png
Image:TrainCarts station left.gif
Sign 2.png
Image:TrainCarts station right.gif
Sign 3.png
Image:TrainCarts station continue.gif
Sign 4.png
Image:TrainCarts station reverse.gif

Auto Routing

Instead of specifying a fixed direction, route can be put instead. This will make the station sign part of the path finding network, and launches the train into the most appropriate direction to reach its destination.

This will route the train to its destination, if set. Otherwise, resumes the train in the same direction it was approaching the station.

Signtemplate.png
[train]
station
route continue


Launch Speed

A number can also be put on the fourth line to set the launch speed of the station sign.

Signtemplate.png
[train]
station
0.4


Signtemplate.png
[train]
station
5
continue 0.4


Lever Output

While a train is waiting on the station, the station toggles levers attached to the same block the station sign is attached to. This can be used to, for example, change the player exit property, open doors or automatically eject the players inside.

Examples

Shuttle-run

File:TrainCarts-Shuttle-run.gif