Mount and Dismount Entities With /ride
The /ride command in Minecraft Java Edition lets you control which target rides on top of another target. It provides two actions: making a target mount a vehicle, or making a riding target dismount.
Players and mapmakers use this command in single-player worlds with cheats enabled or as server operators to create custom mob stacks, place players into vehicles, or force riders off their mounts.
/ride <target> dismount/ride <target> mount <vehicle>/ride <target> dismount/ride <target> mount <vehicle>| Argument | Type | What it means |
|---|---|---|
<target> | target selector one target | Specifies the single rider to mount or dismount, using a player name, a UUID, or a target selector that resolves to one target. |
<vehicle> | target selector one target | Specifies the single target to be ridden, using a player name, a UUID, or a target selector that resolves to one target. |
/ride @s mount @e[type=horse,limit=1,sort=nearest]Makes the player running the command mount the closest horse.
/ride @p dismountForces the nearest player to dismount from whatever they are riding.
/ride @e[type=skeleton,limit=1] mount @e[type=spider,limit=1]Places one skeleton on top of one spider.
/ride Steve mount @e[type=minecart,limit=1,distance=..10]Makes the player named Steve get into a minecart within 10 blocks.
/ride @e[type=zombie,name="Guard",limit=1] dismountMakes a single zombie named Guard get off its current mount.
/ride @e[type=villager,limit=1,sort=random] mount @e[type=camel,limit=1]Puts one randomly chosen villager onto a camel.
/ride Alex mount @e[type=oak_boat,limit=1]Places the player named Alex inside one oak boat.
/ride 069a79f4-44e9-4726-a5be-fca90e38aaf5 dismountMakes the specific target matching that UUID stop riding its vehicle.
Measured from the game files of every Java release from 1.13 to 26.3.
Bedrock Edition also has the /ride command, but it uses completely different syntax and options: /ride <riders: target> start_riding <ride: target> [teleportRules: TeleportRules] [howToFill: FillType], /ride <riders: target> stop_riding, /ride <rides: target> evict_riders, and /ride <rides: target> summon_rider <entityType: EntityType> [spawnEvent: string] [nameTag: string].
The /ride command was added to Minecraft Java Edition in version 1.19.4.
Both the <target> and <vehicle> arguments accept only a single target at a time, so if you use a selector like @e or @a, you must add limit=1 inside the brackets to select just one target.
You need permission level 2, which means being an Operator on a multiplayer server or having cheats enabled in a single-player world.
/advancement/attribute/damage/defaultgamemode/effect/experience/gamemode/kill/rotate/spawnpoint/spectate/spreadplayers/summon/swing/teleport/tp