Skip to content
WikilyWIKILY
All games23 Wikis · pick your game
Commands and cheatsAll commands

Switch game

23 Wikis · pick your game
/ride

Command

/ride

Makes an entity start riding another entity or get off the one it is riding.

Syntax

/ride <target> dismount
/ride <target> mount <vehicle>

Arguments

ArgumentKind of valueWhat to type
<target>Target selectorThe entity that becomes the rider, or that gets off. One entity only.
<vehicle>Target selectorFor mount: the entity to ride on. It cannot be a player. One entity only.

Details

Permission level2: operators, worlds with cheats on, command blocks and functions
Works inSingleplayer with cheats enabled, operators on multiplayer servers, command blocks and functions.
Resultmount reports "<entity> started riding <vehicle>" and dismount reports "<entity> stopped riding <vehicle>". The number /execute store saves is 1.
One at a timeBoth the rider and the vehicle must be a single entity. Use limit=1 in selectors that could match more.
Any entity as a vehicleThe rider is forced on, so mobs that cannot normally be ridden work as vehicles. Players cannot be used as the vehicle: "Players can't be ridden".
Mount failuresmount fails if the rider is already riding something (dismount it first), if the vehicle is the rider itself or one of its passengers, if the two are in different dimensions, or if the vehicle cannot take the rider.
Dismount failuredismount fails with "<entity> is not riding any vehicle" when the entity is not riding anything.

Examples

/ride @s mount @e[type=minecraft:horse,limit=1,sort=nearest]

Puts you on the nearest Horse.

/ride @s dismount

Takes you off whatever you are riding.

/ride @e[type=minecraft:zombie,limit=1,sort=nearest] mount @e[type=minecraft:chicken,limit=1,sort=nearest]

Makes the nearest Zombie ride the nearest Chicken.

/ride @p mount @e[type=minecraft:pig,limit=1,sort=nearest]

Puts the nearest player on the nearest Pig.

/ride @e[type=minecraft:villager,limit=1,sort=nearest] mount @e[type=minecraft:minecart,limit=1,sort=nearest]

Seats the nearest Villager in the nearest Minecart.

Join the creator communityThe people who build the Minecraft Java Edition wiki are on our Discord. Ask questions or suggest pages.Join Discord (opens Discord in a new tab)