minecraft:rail_movement

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

Properties

PropertyTypeDefaultWhat it does
max_speedDecimal0.4Maximum speed that this entity will move at when on the rail.

Example from the game files

This is how vanilla Minecart with Chest uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:rail_movement": {}
}

Used by 5

Vanilla entities with minecraft:rail_movement in their definition:

Related components