TrainCarts/控制牌/启动器

From BergerHealer Wiki
Revision as of 19:14, 14 September 2024 by Halogly (talk | contribs) (Created page with "=== 第三行 ===")
Jump to navigation Jump to search
Other languages:
English • ‎中文(中国大陆)‎

« 返回


介绍

启动器类似于车站,可以启动列车并让它们达到一定的速度。可以指定列车减速/加速的距离和启动方向。启动速度为 0 会使列车慢慢完全停止,类似于车站停止列车的方式。请注意,启动完成后速度不会锁定:你仍然可以推动列车或使其完全停止。


语法

Signtemplate.png
[train]
launch 10
0.4
continue


第一行

使用 [cart][train] 没有区别。 远程控制也可以与启动器结合使用。


第二行

launchlauncher,接下来是启动配置。启动需要设定距离、设定时间或恒定时间。启动方法可以配置为[1][2]。贝塞尔曲线会在启动开始和结束时加速得更慢。

语法 释义
launch 寻找前方轨道的第一个弯道,自动计算合适的调整距离。

通过这种方式计算的最大距离是 100 格方块。

launch 20.0 超过 20 格方块(米)后将列车调整至目标速度。
launch 20.0s 在 20 秒内将列车调整至目标速度。
launch 1m 在 1 分钟内将列车调整至目标速度。
launch 500ms 在 500 毫秒内将列车调整至目标速度。
launch 100t 在 100 刻(5 秒)内将列车调整至目标速度。
launch 2.2G 基于 2.2 倍重力加速度(0.2406 m/s2)的恒定加速度将列车调整至目标速度。
launch 10km/h/s 以恒定加速度将列车调整至目标速度。更多信息请参阅TrainCarts/加速度

必须在某处有“/”才能被视为加速度表达式。

launch 20l
launch 20sl
launch 10km/h/sl
在表达式末尾添加 l,速度变化将遵循线性曲线(加速度恒定)。
launch 20b
launch 20sb
launch 10km/h/sb
在表达式末尾添加 b,速度变化将遵循贝塞尔曲线(加速度变化)。


第三行

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.