Difference between revisions of "TrainCarts/Signs/Launcher/zh-cn"
(Created page with "=== 第一行 ===") |
(Created page with "=== 第二行 ===") |
||
Line 15: | Line 15: | ||
=== 第一行 === | === 第一行 === | ||
− | + | 使用 ''[cart]'' 或 ''[train]'' 没有区别。 [[Special:MyLanguage/TrainCarts/Signs#Remote Control|远程控制]]也可以与启动器结合使用。 | |
− | |||
− | |||
− | + | === 第二行 === | |
− | === | ||
− | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> |
Revision as of 18:43, 14 September 2024
介绍
启动器类似于车站,可以启动列车并让它们达到一定的速度。可以指定列车减速/加速的距离和启动方向。启动速度为 0 会使列车慢慢完全停止,类似于车站停止列车的方式。请注意,启动完成后速度不会锁定:你仍然可以推动列车或使其完全停止。
语法
第一行
使用 [cart] 或 [train] 没有区别。 远程控制也可以与启动器结合使用。
第二行
launch or launcher, followed up by the launch configuration. Launching can be done over a set distance, a set time, or at a constant acceleration. The launch function can be configured as linear or bezier. A bezier curve will accelerate slower towards the beginning and end of the launch.
Syntax | Meaning |
---|---|
launch | Automatically computes a suitable distance to launch at, by looking for the first bend in the rails up ahead.
The maximum distance calculated this way is 100 blocks. |
launch 20.0 | Launches the train to the target speed over 20 blocks (meters) |
launch 20.0s | Launches the train to the target speed in 20 seconds |
launch 1m | Launches the train to the target speed in 1 minute |
launch 500ms | Launches the train to the target speed in 500 milliseconds |
launch 100t | Launches the train to the target speed in 100 ticks (5 seconds) |
launch 2.2G | Launches the train to the target speed at a constant acceleration based on a G-force of 2.2 (0.2406m/t2) |
launch 10km/h/s | Launches the train to the target speed at a constant acceleration. See the TrainCarts/Acceleration page for more information.
Must have a slash somewhere to be considered an acceleration expression. |
launch 20l launch 20sl launch 10km/h/sl |
By appending a l at the end of the expression, the launch follows a linear curve. |
launch 20b launch 20sb launch 10km/h/sb |
By appending a b at the end of the expression, the launch follows a bezier curve. |
Third line
The speed to launch at. If left empty, it will launch at the speed specified in the configuration (launchForce). To put the train to a complete halt, use 0.
Absolute speeds use a positive or zero number with no sign; to launch the train to a speed of 1.25 blocks per tick (25 blocks per second, or 90 km/h), use "1.25". Relative speeds require a sign even when positive; to launch the train to a speed 0.5 higher than it was before, write "+0.5"; to decrease the speed by 0.5, write "-0.5".
When only a value is specified, the unit is blocks/tick. For all other supported units, see TrainCarts/Velocity
Fourth line
Optionally you can specify the direction to launch here. The default parameter, if blank, is "continue" – it will launch the train in the same direction from which it came.