编辑

Entity Documentation - minecraft:rail_movement

Defines the entity's movement on the rails. An entity with this component is only allowed to move on the rail.

Entity Rail Movement Properties

Name Default Value Type Description
max_speed 0.4000000059604645 Decimal number Maximum speed that this entity will move at when on the rail.

Samples

Chest Minecart

"minecraft:rail_movement": {}