Difference between revisions of "TrainCarts/Signs/Station/zh-cn"

From BergerHealer Wiki
Jump to navigation Jump to search
(Created page with "下面的车站将会启动列车到 30 格方块外,且列车停靠车站时列车中心相对于车站牌偏移 12.5 格方块。列车将等待 10 秒,然后启动: {...")
 
(12 intermediate revisions by the same user not shown)
Line 29: Line 29:
 
=== 第三行 ===
 
=== 第三行 ===
  
<div lang="en" dir="ltr" class="mw-content-ltr">
 
 
'''
 
'''
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.'''
+
可选的停止时间(以秒为单位)。停止时间应用于启动时。例如,当红石从右侧激活车站牌且车站牌设置了 3 秒停止时间时,当有列车驶入时,列车将等待 3 秒,之后朝右侧(红石信号输入方向)驶出。'''
</div>
 
  
  
 
=== 第四行 ===
 
=== 第四行 ===
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
设置两侧都有红石信号时使用的发车模式。车站会将列车发往红石信号输入的方向一侧。如果车站完全没有激活,列车会直接通过车站。反转模式([!train])在此处仍然有效,因此如果信号反转且车站牌没被激活,则会判定为所有方向都有红石信号。
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.
 
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
若两侧都为红石信号输入侧,则列车会永远停靠在该车站,除非第四行设置为以下四种类型之一:
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:
 
 
{| class="wikitable"  
 
{| class="wikitable"  
 
|-
 
|-
! scope="col" | Sign
+
! scope="col" | 车站牌
! scope="col" | Result
+
! scope="col" | 结果
 
|-
 
|-
 
| [[File:Sign 1.png|thumb]]
 
| [[File:Sign 1.png|thumb]]
Line 60: Line 55:
 
| [[Image:TrainCarts station reverse.gif|Image:TrainCarts station reverse.gif]]
 
| [[Image:TrainCarts station reverse.gif|Image:TrainCarts station reverse.gif]]
 
|}
 
|}
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
==== 自动调度 ====
==== Auto Routing ====
+
可以不指定方向,通过输入<code>route</code>来替代。这会将车站成为[[TrainCarts/PathFinding|自动寻路机制网络]]的一部分,并让列车以最合适的方向前往目的地。
Instead of specifying a fixed direction, <code>route</code> can be put instead. This will make the station sign part of the [[TrainCarts/PathFinding|path finding network]], and launches the train into the most appropriate direction to reach its destination.
 
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
如果有设置目的地,列车就会发往最适合到达目的地的方向。否则,列车将保持驶入车站时的方向继续行驶。
This will route the train to its destination, if set. Otherwise, resumes the train in the same direction it was approaching the station.
 
 
{{sign|[train]|station||route continue}}
 
{{sign|[train]|station||route continue}}
</div>
 
  
  
 
==== 启动速度 ====
 
==== 启动速度 ====
第四行也可以输入数字,以设定站牌的启动速度。
+
第四行也可以输入数值,来设置车站的启动速度。
 
{{sign|[train]|station||0.4}}
 
{{sign|[train]|station||0.4}}
  
Line 80: Line 70:
 
{{sign|[train]|station|5|continue 0.4}}
 
{{sign|[train]|station|5|continue 0.4}}
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
== 拉杆输出 ==
== Lever Output ==
+
当列车停靠在车站时,车站会切换与自身附着在同一方块的拉杆为开启状态。这可用于更改[[TrainCarts/Signs/Property|玩家离开属性]],开门或[[TrainCarts/Signs/Ejector|自动弹出]]列车里的乘客。
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 [[TrainCarts/Signs/Property|player exit property]], open doors or [[TrainCarts/Signs/Ejector|automatically eject]] the players inside.
 
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
 
 
<gallery widths=300px heights=250px>
 
<gallery widths=300px heights=250px>
File:Tc_station_lever_one.png|Lever is toggled while a train waits on a station|alt=alt language
+
File:Tc_station_lever_one.png|列车停靠车站时切换拉杆为开启状态。|alt=alt language
File:Tc_station_lever_two.png|Alternative setup with a wall sign|alt=alt language
+
File:Tc_station_lever_two.png|车站使用方块柱的形式来切换拉杆。|alt=alt language
File:Tc_station_enterexit.png|Station output is used to automatically enable/disable players entering and exiting the train
+
File:Tc_station_enterexit.png|车站输出用于自动启用/禁用玩家进出列车。
 
</gallery>
 
</gallery>
</div>
 
  
 
== 示例 ==
 
== 示例 ==
  
=== 穿梭运行 ===
+
=== 来回行驶 ===
  
[[File:TrainCarts-Shuttle-run.gif|File:TrainCarts-Shuttle-run.gif]]
+
[[File:TrainCarts-Shuttle-run.gif|列车来回行驶。]]

Latest revision as of 17:23, 17 September 2024

Other languages:
English • ‎中文(中国大陆)‎

« 返回


介绍

一辆列车停在车站牌的上方。

车站用于停止和启动列车,可设置停止时间(以秒为单位)。车站会将红石信号输入的方向作为列车的启动方向,当两边都有红石信号输入时,车站会自动设置列车的启动方向。

语法

Signtemplate.png
[train]
station
5
continue


第一行

使用 [train] 时,列车的中心位置(比如列车中间的矿车)会停在车站牌的上方。当使用 [cart] 时,列车会立即停止,第一辆矿车会停在车站牌的上方。


第二行

Station,后可跟数值。这个数值表示列车的启动距离。数值越高,启动速度就越慢。不加数值则插件会自动计算启动距离,之后会将列车启动到最远 100 格方块内的第一个弯轨道上。

你还可以指定'中心偏移量',用于改变列车停靠车站的位置。还可以通过指定 <距离数值>m 来修改,例如 '20.5m'

下面的车站将会启动列车到 30 格方块外,且列车停靠车站时列车中心相对于车站牌偏移 12.5 格方块。列车将等待 10 秒,然后启动:

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

第三行

可选的停止时间(以秒为单位)。停止时间应用于启动时。例如,当红石从右侧激活车站牌且车站牌设置了 3 秒停止时间时,当有列车驶入时,列车将等待 3 秒,之后朝右侧(红石信号输入方向)驶出。


第四行

设置两侧都有红石信号时使用的发车模式。车站会将列车发往红石信号输入的方向一侧。如果车站完全没有激活,列车会直接通过车站。反转模式([!train])在此处仍然有效,因此如果信号反转且车站牌没被激活,则会判定为所有方向都有红石信号。

若两侧都为红石信号输入侧,则列车会永远停靠在该车站,除非第四行设置为以下四种类型之一:

车站牌 结果
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

自动调度

可以不指定方向,通过输入route来替代。这会将车站成为自动寻路机制网络的一部分,并让列车以最合适的方向前往目的地。

如果有设置目的地,列车就会发往最适合到达目的地的方向。否则,列车将保持驶入车站时的方向继续行驶。

Signtemplate.png
[train]
station
route continue


启动速度

第四行也可以输入数值,来设置车站的启动速度。

Signtemplate.png
[train]
station
0.4


Signtemplate.png
[train]
station
5
continue 0.4

拉杆输出

当列车停靠在车站时,车站会切换与自身附着在同一方块的拉杆为开启状态。这可用于更改玩家离开属性,开门或自动弹出列车里的乘客。

示例

来回行驶

列车来回行驶。