{{Redirect|Ride|the mechanic|riding}} {{Infobox command |name=ride |oplevel=2{{only|java|short=1}}
1{{only|bedrock|short=1}} |others=[[Options|Cheat]] only{{only|bedrock|short=1}} }} Allows entities to mount or dismount other entities. == Usage == {{main|Riding}} {{IN|java}}, all types of entities can ride another entity, and most can be ridden by one. The entities which cannot be ridden are [[marker]]s, [[player]]s, [[fishing bobber]]s, [[leash knot]]s, and [[lightning bolt]]s. When riding, the entity is known as a passenger. When ridden, the entity is known as the vehicle. {{IN|bedrock}}, an entity cannot ride entities which are not normally rideable for it in vanilla game, which is mainly data driven, controlled by the {{cd|minecraft:rideable}} component in the entity files in behavior packs (see [[Riding#Valid riding combinations in vanilla]] for details; see also the [https://learn.microsoft.com/en-us/minecraft/creator/reference/content/entityreference/examples/entitycomponents/minecraftcomponent_rideable official doc]). {{IN|bedrock}}, this command can also be used to summon passengers and mounts. ==Syntax== * '''Java Edition''' : ride mount :: Makes ride on . : ride dismount :: Dismounts from any vehicle it is riding. * '''Bedrock Edition''' : ride start_riding [teleportRules: TeleportRules] [howToFill: FillType] ::Tries to make ride on . : ride stop_riding ::Makes dismount. : ride evict_riders ::Makes entities that are riding on dismount. : ride summon_rider [spawnEvent: string] [nameTag: string] ::Summons an entity at the position of each of that are rideable and not full, and then tries to make them ride on . : ride summon_ride [rideRules: RideRules] [spawnEvent: string] [nameTag: string] ::Summons an entity at the position of each of , and then tries to make ride on them. ==Arguments== {{el|java|short=1}}: {{argument|target|entity}} : Specifies the passenger. : {{arg desc|je=entity|amount=single|type=entities}} {{el|java|short=1}}: {{argument|vehicle|entity}} : Specifies the mount. : {{arg desc|je=entity|amount=single|type=entities}} {{el|bedrock|short=1}}: {{argument|be=1|riders: target|CommandSelector}} : Specifies the passengers. : If in start_riding mode, should be only one entity if teleportRules: TeleportRules is teleport_ride. : {{arg desc|be=actor}} {{el|bedrock|short=1}}: {{argument|be=1|ride: target|CommandSelector}} : Specifies a mount. : Should be only one entity. : {{arg desc|be=actor}} {{el|bedrock|short=1}}: {{argument|be=1|rides: target|CommandSelector}} : Specifies the mounts. : {{arg desc|be=actor}} {{el|bedrock|short=1}}: {{argument|be=1|teleportRules: TeleportRules|enum}} : Must be one of teleport_ride and teleport_rider. : Specified which entities are teleported. If unspecified, defaults to teleport_rider. {{el|bedrock|short=1}}: {{argument|be=1|howToFill: FillType|enum}} : Must be one of if_group_fits and until_full. :* If if_group_fits, checks whether all the riders can ride on the mount at the same time, and makes all of them ride the mount only if true. :* If until_full or unspecified, makes them ride up one by one until the mount is full. {{el|bedrock|short=1}}: {{argument|be=1|entityType: EntityType|enum}} : Specifies the entities to be summoned. : Must be an ID of an entity type. {{el|bedrock|short=1}}: {{argument|be=1|spawnEvent: string|basic_string}} : Specifies the entity event for the to-be-summoned entities. Should be a [[spawn event]] (event name for entities in behavior pack). : {{arg desc|be=string}} {{el|bedrock|short=1}}: {{argument|be=1|nameTag: string|basic_string}} : Specifies the name of the to-be-summoned entities. : {{arg desc|be=string}} {{el|bedrock|short=1}}: {{argument|be=1|rideRules: RideRules|enum}} : Must be one of no_ride_change, reassign_rides, and skip_riders. :* If skip_riders, summons entities only for that are not riding on another entity. :* If no_ride_change, summons entities only for that are not riding on and not ridden by other entity(s). :* If reassign_rides or unspecified, makes dismount if they're riding, then summons entities for all of them. ==Result== {{Result table}} {{Result table|The command is incomplete, or any argument is not specified correctly.|unparseable|unparseable}} {{Result table| or fails to resolve to an entity (named players must be online).|fail|N/A}} {{Result table|cmd=/ride ... mount ...| is already riding on an entity.}} {{Result table| is a [[marker]], [[player]], [[fishing bobber]], [[leash knot]], or [[lightning bolt]].}} {{Result table|A mounting loop is detected ( is riding , or its passengers, or passengers of its passengers, etc.).}} {{Result table| and are in different dimensions.}} {{Result table|cmd=/ride ... dismount| is not riding on an entity.}} {{Result table|cmd=|riders: target, rides: target, or ride: target fails to resolve to one or more entities (named players must be online).|N/A|fail}} {{Result table|cmd=/... start_riding ...|More than one entity is targeted by ride: target.}} {{Result table|The entity targeted by ride: target is already full.}} {{Result table|teleportRules: TeleportRules is teleport_ride and more than one entity is targeted by riders: target.}} {{Result table|howToFill: FillType is not specified or until_full, and the ride: target is not rideable for all of riders: target.}} {{Result table|howToFill: FillType is if_group_fits, and too many entities are targeted by riders: target to ride up at the same time.}} {{Result table|howToFill: FillType is if_group_fits, and the ride: target is not rideable for at least one of riders: target.}} {{Result table|cmd=/... stop_riding|None of riders: target is riding on other entity.}} {{Result table|cmd=/... evict_riders|None of rides: target is ridden by other entities.}} {{Result table|cmd=/... summon_rider ...|All rides: target are already full or not rideable for the riders.}} {{Result table|Trying to summon hostiles in peaceful difficulty.}} {{Result table|cmd=/... summon_ride ...|All summoned entities are not rideable for riders: target.}} {{Result table|Trying to summon hostiles in peaceful difficulty.}} {{Result table|cmd=|succeed}} {{Result table}} ==Output== {{Output table}} {{Output table|edition=je|On fail|0|0|0}} {{Output table|On success|1|1|1}} {{Output table|edition=be|cmd=|On fail|0}} {{Output table|cmd=/... start_riding ...|On success|the number of entities that get riding on the targeted ride}} {{Output table|cmd=/... stop_riding ...|On success|the number of entities that get dismounted}} {{Output table|cmd=/... evict_riders ...|On success|the number of entities that successfully evict their riders}} {{Output table|cmd=/... summon_rider ...|On success|the number of summoned entities that successfully ride on their linked rides}} {{Output table|cmd=/... summon_ride ...|On success|the number of summoned entities that are successfully ridden by their linked riders}} {{Output table}} ==Example== {{IN|java}}, to ride and try to [[tame]] a [[skeleton horse]] or [[zombie horse]]: */ride @s mount @e[type=minecraft:skeleton_horse,limit=1] or /ride @s mount @e[type=minecraft:zombie_horse,limit=1] {{IN|java}}, make yourself ride on the nearest arrow: */ride @s mount @n[type=arrow] {{IN|bedrock}}, summon an arrow at the position of each player who have "A" tag: */ride @a[tag=A] summon_ride arrow {{IN|bedrock}}, summon a charged creeper at the position of each player who have "A" tag: */ride @a[tag=A] summon_ride creeper reassign_rides minecraft:become_charged == History == {{HistoryTable |{{HistoryLine|java}} |{{HistoryLine||1.19.4|dev=23w03a|Added {{cmd|ride|link=none}}.}} |{{HistoryLine||1.21.2|dev=24w40a|No longer makes players ride [[leash knot]]s, [[lightning bolt]]s and [[fishing bobber]]s.}} |{{HistoryLine|bedrock}} |{{HistoryLine||1.16.100|dev=beta 1.16.100.52|Added {{cmd|ride|link=none}}.}} }} == Navigation == {{Navbox commands}} [[de:Befehl/ride]] [[ja:コマンド/ride]] [[pt:Comandos/ride]] [[ru:Команды консоли/ride]] [[zh:命令/ride]]