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
| Property | Type | Default | What it does |
|---|---|---|---|
max_speed | Decimal | 0.4 | Maximum 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: