//Launcher
介紹
啟動器類似於車站,可以啟動列車並讓它們達到一定的速度。可以指定列車減速/加速的距離和啟動方向。目標速度為0會使列車慢慢完全停止,類似於車站停止列車的方式。請注意,啟動完成後速度不會鎖定:你仍然可以推動列車或使其完全停止。
語法
第一行
使用[cart]或[train]沒有區別。 遠程控制也可以與啟動器結合使用。
第二行
launch或launcher,後跟啟動配置。啟動需要設定距離、設定時間或恆定加速度。啟動方法可以配置為線性函數或貝塞爾曲線。貝塞爾曲線會在啟動開始和結束時加速得更慢。
| 語法 | 釋義 |
|---|---|
| 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 | 以恆定加速度將列車調整至目標速度。詳見加速度。
必須在某處有「/」才能被視為加速度表達式。 |
| launch 20l launch 20sl launch 10km/h/sl |
在表達式末尾添加l,速度變化將遵循線性曲線(加速度恆定)。 |
| launch 20b launch 20sb launch 10km/h/sb |
在表達式末尾添加b,速度變化將遵循貝塞爾曲線(加速度變化)。 |
第三行
目標速度。若留空,則使用配置文件中的速度(launchForce)。要使列車完全停止,請設置為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
Speed limit
Normally trains will never speed up beyond what the speed limit property is set to. To overcome this, you will need to set a new speed limit, but setting the speed limit property may result in an instant speed-up. To fix this, it is possible to specify two numbers on the launcher sign to update both. It will smoothly launch to a new speed limit speed, and set the remainder as 'energy' that will slowly go down.
Speed limit syntax
Set a new speed limit of 2.0 and launch the train to this speed over a distance of 20 blocks. Once reached, give the train 10 'energy'.
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.
