/ride @p mount @e[type=minecraft:horse,limit=1,sort=nearest]The /ride command makes entities mount or dismount vehicles. The target is the passenger, and the vehicle is what they ride. Available in Java Edition since 1.19.4.
The /ride command dynamically mounts or dismounts any entity onto any other entity, with no need to re-summon mobs using Passengers NBT. Make azombie ride a
spider mid-game, force a player onto a horse, or eject all passengers from a
boat.
The syntax is /ride [target] mount [vehicle] to mount or /ride [target] dismount to eject. The command works on entities that already exist in the world. Before it was added in 1.19.4, the only way to create riding relationships was the Passengers NBT tag with /summon, fixed at spawn time.
This is powerful for data packs and command block contraptions where entities are created at different times or need to be reassigned on the fly: custom vehicle systems, entity elevators, or scripted cutscenes where NPCs mount horses on command.
| Command | Effect |
|---|---|
| /ride <target> mount <vehicle> | Makes the target entity start riding the vehicle entity |
| /ride <target> dismount | Makes the target entity stop riding whatever it is currently riding |
| /ride @s mount @e[type=pig,limit=1,sort=nearest] | Mounts you on the nearest pig |
| /ride @a dismount | Ejects every player from whatever they are riding |
Passenger limits: an entity only holds a set number of passengers. Boats hold 2, horses and most mobs hold 1, and minecarts hold 1. Trying to mount a full vehicle fails silently.
Custom vehicle systems: mount players onto pre-placed
minecarts or boats at waypoints. Combined with /execute, detect when a player enters a zone and seat them automatically. Useful for roller coasters, transit systems, or cutscene sequences.
Dynamic mob jockeys: create spider jockeys, chicken jockeys, or custom combinations on the fly. Mount a
pillager on a
ravager during a raid, or put a wither skeleton on a
strider for a Nether chase. The /ride command combines any two entities without re-summoning.
Forced dismount for minigames: eject all players from boats at the end of a race with /ride @a dismount. Combine with /kill @e[type=minecraft:boat] to clean up vehicles after the event ends.
The /ride command lets you make any entity mount or dismount another entity. It was added in Java Edition 1.19.4. The syntax is /ride <target> mount <vehicle> to mount, or /ride <target> dismount to dismount. Unlike the Passengers NBT tag, /ride works on entities that already exist in the world.
Yes. Use /ride @s mount @e[type=minecraft:pig,limit=1,sort=nearest] to mount the nearest pig. This works with any mob. You can ride zombies, endermen, iron golems, or even the ender dragon, though you cannot control most of them without a saddle and the right mob type.
The Passengers NBT tag is used with /summon to create riding relationships at spawn time. The /ride command works on entities that already exist in the world, so you can dynamically mount and dismount entities at any time. /ride is more flexible for data packs and command block systems.
Boats hold 2 passengers, horses and most rideable mobs hold 1, and minecarts hold 1. Attempting to mount a full vehicle fails silently. Stacking more than one passenger usually requires summoning with nested Passengers NBT instead of /ride.
Browse more Minecraft tools: