OmniGame logoOmniGame

/ride Command

Makes the specified entity (passenger/rider) mount or dismount a vehicle entity. Introduced in Java Edition 1.21.2 (24w33a snapshot).

Syntax
ride <target> mount <vehicle> ride <target> dismount
Permission: 2 (gamemaster / cheats enabled)Edition: Java

Examples

/ride @p mount @e[type=minecraft:horse,sort=nearest,limit=1]/ride @e[type=minecraft:zombie,limit=1] mount @e[type=minecraft:spider,limit=1]/ride @s dismount/ride @e[type=minecraft:skeleton] mount @e[type=minecraft:horse,tag=saddled,limit=1]

Notes

Added in Java Edition 1.21.2 (snapshot 24w33a). The target selector for vehicle must resolve to exactly one entity. Entities that cannot be ridden include: markers, fishing bobbers, leash knots, and lightning bolts. Players cannot be ridden. The vehicle selector must return a single entity.

More commands