TrainCarts/Velocity

From BergerHealer Wiki
Jump to navigation Jump to search
m (fixed)
(Marked this version for translation)
 
Line 9: Line 9:
As a base unit TrainCarts uses ''blocks/tick'' This can be understood as: ''Move the train by <value> blocks every tick''. A single tick is 1/20 second. All units are case-insensitive. Some mix-matching of units is possible, for example, you can use ''20m/h'' even though it is not listed. For a change in velocity, see [[TrainCarts/Acceleration]].
As a base unit TrainCarts uses ''blocks/tick'' This can be understood as: ''Move the train by <value> blocks every tick''. A single tick is 1/20 second. All units are case-insensitive. Some mix-matching of units is possible, for example, you can use ''20m/h'' even though it is not listed. For a change in velocity, see [[TrainCarts/Acceleration]].


== Syntax ==<!--T:5-->
== Syntax == <!--T:5-->


<!--T:6-->
<!--T:6-->

Latest revision as of 17:11, 28 December 2025

Other languages:

Introduction

Velocity is the speed of the train. Speed syntax is important for Launcher signs, Speed limit property and any other places where a speed is specified.

As a base unit TrainCarts uses blocks/tick This can be understood as: Move the train by <value> blocks every tick. A single tick is 1/20 second. All units are case-insensitive. Some mix-matching of units is possible, for example, you can use 20m/h even though it is not listed. For a change in velocity, see TrainCarts/Acceleration.

Syntax

Input blocks/tick Explanation
0.2
0.2/t
0.2 When no unit is specified, the value is in blocks/tick
20m/s
20/s
1.0 Unit in blocks/second (or m/s). The m before the unit is optional.
30km/h
30kmh
30kmph
0.4167 Unit in kilometers/second. Can be specified as km/h, kmh or kmph.
3.28ft/s 0.05 Unit in feet/second
1.0mi/h
1.0mph
0.022352 Unit in miles/hour. mi/h can be specified as mph.