Entity Documentation - minecraft:rail_movement

minecraft:rail_movement defines the entity's movement on rails. An entity with this component is only allowed to move on the rail.

Parameters

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

Example

"minecraft:rail_movement":{
    "max_speed": 0.4
}

Vanilla entities examples

minecart

"minecraft:rail_movement": {
}

Vanilla entities using minecraft:rail_movement