Riding

Revision as of 00:43, 16 October 2024 by Thegameandtime (talk | contribs) (→‎Posture: They also have the riding position)
Jump to navigation Jump to search
For the related command, see Commands/ride.

Riding, also known as mounting, is the behavior that allows an entity to mount another entity.

Behaviors

Riding connects one entity to another. An entity riding another entity is called a passenger (aka. rider), and an entity being ridden is called a mount (aka. vehicle). An entity can be both a passenger and a mount at the same time if it is riding another entity while being ridden by other entities.

An entity can only ride at most one entity at the same time. Most entities support only one passenger, but boat, bamboo raft and camel can support two passengers at the same time. In Java Edition, by modifying entity NBT through commands, an entity may be ridden by any number of entities. In Bedrock Edition, a baby hoglin can support 3 baby piglins, which looks like they are stacked one by one. However, in Java Edition, baby piglins ride each other and are indeed stacked one by one, instead of all riding on the hoglin. In Bedrock Edition, a player can support 2 parrots. However, in Java Edition, parrots become not entities and are stored into the player's NBT data when sitting on the shoulders of a player.

The collision and movement of a mount is not affected by its passengers, so the accessible position for the mount may put the passengers into danger, for example, making the passenger's head inside of a block and causing suffocation.[1] However, in Java Edition, a passenger riding on a passenger of an entity collides with the entity, resulting bugs like MC-71998.

When a player leaving the world, all the entities that is ridden by or riding it also disappear from the world, and will respawn with the player when the player rejoins the world, unless the affected entity has another player passenger.

In Java Edition, with /ride command, all entities are rideable by any entity, except marker and player, which never can be ridden. In Bedrock Edition, only some riding combinations are valid for /ride command, see § Valid riding combinations in vanilla.

In Java Edition, when a leashed mob starts riding, it drops the lead. In Bedrock Edition, a leashed mob cannot start riding unless using /ride command, and when starting riding, it doesn't drop the lead.

A passenger cannot set its mount as its target for attack, a mount cannot set its passenger as the target for attack either, unless using /damage command. In Bedrock Edition, they cannot attack each other at all even when they target each other through /damage command.

Passengers

Passengers have the following behaviors:

  • The position of a passenger is fixed on its mount, that is, the position and movement of a passenger cannot be affected by any other gameplay features.
  • Passengers can be transported by nether portals or end portals.[2]
  • Passengers do not calculate the falling height. When starting riding, the falling height is reset.
  • When a player is a passenger, it cannot interact with its mount.
  • When a player is a passenger, it cannot interact with other passengers on the same mount as its.
  • When a player is a passenger and the mount is a mob or an armor stand, the health bar of the mount is displayed on the player's HUD in the form of ♥. In Java Edition, the hunger bar is replaced by it in Survival or Adventure mode.

Mounts

Mounts have the following behaviors:

  • Mounts can be transported by nether portals or end portals.[2]
  • When a mount receives falling damage, all passengers also receive falling damage.
    • In Java Edition, if a mount is immune to falling damage, the damage is not passed to passengers.
    • In Bedrock Edition, even if a mount is immune to falling damage, the damage is still passed to passengers.

Controlling

By players

The movement of the following mounts are controlled by the player when being ridden by it:

In Java Edition, though minecarts on rails receive the input from its player passenger, they are not regarded as being controlled in game. In Java Edition, boats and boats with chest are regarded as being controlled by a armor stand when being ridden by it, but never move.

The following mounts have the ability of "jumping charging". When players ride them, the experience bar on HUD will be replaced by jumping charging bar:

When a player ride the following entities, pressing inventory opens the interaction interface of these creatures instead of the normal item bar interface:

By mobs

In Java Edition, the movement of a mount is controlled by its passenger, if both the mount and the passenger are mobs (not players). However, there are some exceptions:

  • Mobs with their NoAI NBT being true cannot be controlled by any mob, though they can be controlled by players.
  • Slimes and magma cubes cannot control any mob, which is controlled by entity type tag non_controlling_rider.

In Bedrock Edition, for most of rideable mobs, when its mob passenger tries to chase and attack player or mobs, the passenger takes control, otherwise the mount controls movement. The following mobs are exceptions:

  • Hoglin: cannot be controlled by mob passengers.
  • Strider: cannot be controlled by mob passengers.

In Bedrock Edition, some AI goals are disabled if the entities is ridden by or riding an entity. For example in Bedrock Edition, when a zombie rides a pig, the pig controls the movement when they are idle; but the pig cannot follow players holding a carrot even when the zombie is idle; the pig controls the movement when it is breeding and the zombie is idle; the zombie controls the movement when it targets a player even when the pig is breeding.

When being controlled by its passenger, the mount uses its own walk speed. However, in Java Edition, speed modifier of its passenger's AI is applied. For example, spiders ridden by a chicken, a sheep, or a llama have different speed when they follows a player holding seeds, wheat, or hay block, respectively. Because the AIs of chicken, sheep, and llama have different speed modifiers. While in Bedrock Edition, the speed modifier (speed multiplier) for being controlled is defined for each entity type (by minecraft:behavior.mount_pathing component).

Behavior

For an entity that is ridden by multiple passengers, only the front passenger has control over the mount. If a player and other entities ride it at the same time, the player becomes the front passenger.

In Java Edition, the passenger controlling its mount can be targeted with /execute on controller.

In Java Edition, mobs cannot float on water when they are controlled. They are submerged in the water instead. In Bedrock Edition, they can float on water when being controlled, however, because they float up and down more fiercely than in Java Edition, their heads are often submerged so that the passenger is evicted,while tall mobs can float on water without their heads being submerged and the passenger is not evicted.

Dismounting

Mobs usually cannot leave their mounts on their own AI (there're some exceptions, e.g. in Java Edition, baby piglins stop riding baby hoglins when being hurt), but there are many ways to make passengers leave their mounts:

  • When the passenger is a player, the player uses dismount control.
  • When the passenger is a player, the player starts sleeping by using use on a bed.
  • When the passenger is a player, the player starts riding another mount.
  • When the mount is dead or destroyed.
  • When the passenger starts being leashed with a lead.
  • When riding a chicken, pig, ravager, spider, strider, horse, donkey, mule, zombie horse, llama, trader llama or camel under water, being driven off by them. In Java Edition, this is controlled by dismounts_underwater entity tag.[3]
  • Being driven off by the mount (e.g. untamed horses, donkeys and llamas, underwater boats, minecarts on a powered activator rail, etc.).
  • In Java Edition, When the passenger finishes eating a chorus fruit.
  • In Bedrock Edition, when the passenger is pulled by a fishing rod.
  • In Bedrock Edition, when the passenger is teleported by /tp.
  • In Bedrock Edition, when the passenger is a piglin, and it converts to a zombified piglin.
  • Dismounting by /ride command.

Riding in vanilla game

Ridden by player

Players can ride the following entities by pressing use on the entity:

Minecart

A mob can ride a minecart when pushing by a moving minecart on rails in Java Edition or when colliding with a minecart in Bedrock Edition. In Bedrock Edition, armor stand can also be picked up.

Ender dragons, wardens, and withers cannot be picked up by a minecart. In Java Edition, iron golems cannot be picked up either.

In Bedrock Edition, unlike wardens, ender dragons can ride a minecart via /ride command; withers cannot ride a minecart via /ride though a success message is returned.

Boat

Mobs can be picked up into a boat or a boat with chest when they collide with the side of the boat or boat with chest. In Java Edition, a boat being ridden by a player cannot pick up a mob. In Bedrock Edition, mobs can be picked up by a boat being ridden by a player.

Mobs wider than the width of a boat cannot be picked up. Wardens and withers cannot be picked up.

In Bedrock Edition, mobs wider than the width of a boat can ride a boat via /ride command. Unlike wardens, ender dragons can ride a boat via /ride command; withers cannot ride a boat via /ride though a success message is returned.

Jockey

Main article: Jockey

Spider jockey

Main article: Spider Jockey

Spider jockeys are the rare appearance of a spider being ridden by a skeleton.

Chicken jockey

This feature is exclusive to Java Edition.
 
Main article: Chicken Jockey

Chicken jockeys are the rare appearance of a baby zombie, baby zombified piglin, baby zombie villager, baby husk, or baby drowned riding a chicken.

Jockey of baby zombie

This feature is exclusive to Bedrock Edition.
 

In Bedrock Edition, 15% naturally spawned baby zombies, baby husks, and baby zombie villagers try to find a mount when it tries attacking a villager, player, or iron golem, which can ride:

Skeleton Horseman

Main article: Skeleton Horseman

Skeleton horseman is a jockey consisting of a skeleton (or stray and wither skeleton) riding a skeleton horse. Skeleton horsemen spawn only from a "skeleton trap horse".

Baby piglin riding baby hoglin

Main articles: Piglin and Hoglin

Baby piglins play with baby hoglins, running around and riding upon them. Up to 3 baby piglins may stack on top of each other while riding a baby hoglin. In Bedrock Edition, a baby hoglin can support 3 baby piglins, which looks like they are stacked one by one. However, in Java Edition, baby piglins ride each other and are indeed stacked one by one, instead of all riding on the hoglin.

Strider or zombified piglin riding strider

Main articles: Strider and Zombified Piglin

For every strider that spawns, there is a 1 in 10 chance of an additional baby strider to spawn riding on top of the previous strider. Zombified piglins have a 1 in 30 chance of spawning on top of a strider.

Illager riding ravager

Main article: Ravager

A ravager generated in raids may generate with a pillager, evoker or vindicator riding on it.

Parrot riding player

Main article: Parrot

A tamed parrot on the ground can be made to perch on its player's shoulder by moving through the parrot. In Bedrock Edition, technically the parrot is riding the player. In Java Edition, technically the parrot on the shoulder is not an entity.

Valid riding combinations in vanilla

This feature is exclusive to Bedrock Edition.
 

In Bedrock Edition, whether an entity is rideable is mainly defined with minecraft:rideable component and entity familliers in vanilla behavior packs. Besides, some entities have hardcoded riding behaviors, for, example, wardens being not able to riding a boat, boat doing not pick up adult horses although they can ride boats via /ride command.

In the following table, none means that the entity is rideable by these families no matter what component groups it has. Multiple components separated by | symbols means that the entity must have at least one of them to be rideable by these families.

Rideable entity Valid families for specific component groups
Boat minecraft:can_ride_default | minecraft:can_ride_bamboo: all
Boat with chest minecraft:can_ride_default | minecraft:can_ride_bamboo: all
Camel minecraft:camel_adult: player
Cat minecraft:cat_wild: zombie
Cave spider minecraft:spider_jockey | minecraft:spider_stray_jockey | minecraft:spider_wither_jockey: skeleton; Otherwise: zombie
Chicken minecraft:chicken_adult: zombie
Cow none: zombie
Donkey minecraft:donkey_wild: player, zombie; minecraft:donkey_tamed: player
Hoglin minecraft:hoglin_baby: piglin
Horse minecraft:horse_wild: player, zombie; minecraft:horse_tamed: player
Husk minecraft:zombie_husk_adult: zombie
Llama minecraft:llama_wild | minecraft:llama_tamed: player
Minecart none: all
Mooshroom none: zombie
Mule minecraft:mule_wild: player, zombie; minecraft:mule_tamed: player
Ocelot minecraft:ocelot_wild: zombie
Panda none: zombie
Pig minecraft:pig_unsaddled: zombie; minecraft:pig_saddled: player
Player none: parrot_tame
Ravager none: pillager, vindicator, evocation_illager
Sheep minecraft:rideable_sheared | minecraft:rideable_wooly: zombie
Skeleton horse minecraft:skeleton_horse_adult: player, skeleton, zombie
Spider minecraft:spider_jockey | minecraft:spider_stray_jockey | minecraft:spider_wither_jockey: skeleton; Otherwise: zombie
Strider minecraft:strider_saddled: player; minecraft:strider_piglin_jockey: player, zombie_pigman; minecraft:strider_parent_jockey: strider
Trader llama minecraft:llama_wild | minecraft:llama_tamed: player
Wolf minecraft:wolf_angry | minecraft:wolf_wild: zombie
Zombie minecraft:zombie_adult: zombie
Zombie horse minecraft:horse_adult: zombie
Zombie piglin minecraft:pig_zombie_adult: zombie
Zombie villager adult: zombie

Posture

The following passengers have riding posture when riding:

Witches, villagers, iron golems, and wandering traders do not have a riding posture although similar mobs do.[4]

Gallery

Players

Illagers

Monsters

Zombie Villagers

Achievements

[hide]
IconAchievementIn-game descriptionActual requirements (if different)Gamerscore earnedTrophy type (PS)
PS4Other
Feels Like HomeTake a Strider for a loooong [sic] ride on a lava lake in the Overworld.In the Overworld, use a strider to ride on a lava lake for a distance of 50 meters from the point where the ride starts.20Silver
Saddle UpTame a horse.20Bronze
When Pigs FlyUse a saddle to ride a pig, and then have the pig get hurt from fall damage while riding it.Be riding a pig (e.g. using a saddle) when it hits the ground with a fall distance greater than 5.40Silver

Advancements

IconAdvancementIn-game descriptionActual requirements (if different)
Feels Like HomeTake a Strider for a loooong ride on a lava lake in the OverworldWhile riding a strider, travel 50 blocks on lava in the Overworld.
Only horizontal displacement is counted. Traveling in a circle for more than 50 blocks doesn't count.
This Boat Has LegsRide a Strider with a Warped Fungus on a StickUse a warped fungus on a stick while riding a strider, decreasing its durability.

History

[hide]Java Edition Infdev
20100624The minecart mechanics have been changed to being rideable, removing their ability to store items.
20100625-2Added saddle, used to ride pigs
[hide]Java Edition Alpha
v1.0.4A sitting posture for riding has been added.
v1.0.6Added boat, which is by players.
v1.0.17Added spider jockeys.
[hide]Java Edition Beta
1.6Test Build 3A minecart now transfers any fall damage it suffers onto its rider and is not destroyed upon impact.
[hide]Java Edition
1.3.112w21bThe player can control a stationary minecart while riding it.
1.4.212w36aAdded carrot on a stick to direct saddled pigs.
12w37aPigs are now able to jump when ridden.
1.513w05aWithers are no longer able to ride minecarts or boats.
1.6.113w16aAdded horse, mule, donkey, skeleton horse, and zombie horse, which are rideable.
Add mob's health bar to the Heads-up display when riding on it.
1.6.113w16bControls on boat have been removed.
1.7.213w36aPlayers can now /summon mobs riding boats, though mobs cannot control boats.
13w43aControls on boat are re-added.
1.7.413w49aAdded chicken jockeys.
14w06aMobs riding boats can now control boats, so that they can chase or flee enemies, move toward food, move about randomly, or whatever they would do on land. The exceptions are the ghast and bat, both of which cannot control boats.
1.915w38aAdded skeleton horsemen.
15w41aBoats can support two riders.
Mobs can now board boats, though they can no longer control them.
A new set of controls of boats have been introduced.
16w04aThe controls of boats are now more similar to them before the overhaul in 15w41a.
Riding a boat no longer subjects water-sensitive mobs to being damaged by water, and no longer protects sunlight-sensitive mobs from being damaged by sunlight.
Dismounting in a boat now attempts to place the player on land.
16w06aEntities ridden by the player are now run by the client rather than by the server.
1.1116w39aAdded llamas, which are rideable.
1.1419w05aAdded trader llamas, which are rideable by players.
1.1620w13aAdded striders.
1.19.3
Experiment
Update 1.20
22w42aAdded camels behind the Update 1.20 experimental datapack.
Added bamboo rafts behind the Update 1.20 experimental datapack.
1.19.423w03aAdded /ride.
1.2023w12aFixed bugs that lead to player location desync when riding an entity.[5]
23w13aFixed bugs that mobs with passengers have broken movements.[6]
Now horse, mule, donkey, zombie horse and skeleton horse can be controlled by riding mobs even when unsaddled.
Now horse, mule, donkey, zombie horse and skeleton horse no longer can be controlled by an armor stand.
Now the passenger riding on a sniffer has correct offset.[7]
Fixed a bug that camels riding entities get permanently stuck in dash mode.[8]
23w16aNow sniffer can be picked up by a minecart[9] or a boat.
Pre-release 3Fixed jitters when teleporting the mount of the player since 23w12a.[10]
Fixed a bug that riding an entity with slow falling does not stop fall damage.[11]
Pre-release 5Now mob effect works correctly when losing and re-gaining control of a ridden mob.[12]
1.20.223w31aNow all entities riding vehicles have correct offsets.[13]
Now all entities riding vehicles have correct controls:
  • All mobs now can be controlled by mobs. Before, pigs, striders, llamas, trader llamas, and unsaddled camels cannot be controlled by mobs.[14]
  • Saddled camels are no longer controlled by riding armor stands.
  • Unsaddled striders are no longer controlled by riding players.
  • Ravagers are no longer controlled by players and armor stands.
  • Now horses, donkeys, mules, skeleton horses, and zombie horses can no longer be controlled by a mob when their NoAI NBT is true, just like all other mobs.
  • Added an entity type tag non_controlling_rider that prevents a mob type controlling any other mobs. Slime and magma cube are in this tag. Before, they can control other mobs.[15]
Now a mob's AI no longer breaks when ridden by mobs that cannot control it.[16]
The player no longer sneaks client-side if their eyes are in blocks when riding.[17]
23w35aFixed a bug that the rotation of controlling passengers on sitting camels is sometimes restricted.[18]
Pre-Release 3Now players in a minecart has correct offset.[19]
Release Candidate 1Now mobs in a minecart has correct offset once again.[20]
Release Candidate 2Now villagers and wandering traders in a minecart has lower offset, to fixed suffocating when travelling up slopes.
1.2124w21aAdded new gamerule entitiesWithPassengersCanUsePortals, which allows entities with passengers to enter portals, fixing MC-67.
Pre-Release 1Removed gamerule entitiesWithPassengersCanUsePortals. Entities with passengers entering portals is now the default behavior.
[hide]Pocket Edition Alpha
0.8.0build 2Added minecarts, which are rideable.
0.11.0build 1Added boats, which are rideable.
Boats can support two riders, including mobs.
Added spider jockeys.
Added baby zombies and chicken jockeys.
build 2Added baby zombie pigmen and their chicken jockeys.
v0.12.1build 1Added baby zombie villagers and their chicken jockey.
Added wither skeleton jockeys with a cave spider variant.
v0.14.0build 1Removed chicken jockeys. Now baby zombie, baby zombie villager, and baby zombie pigmen now have 15% chance of becoming a jockey when angering, rather than spawning as a chicken jockey.
v0.15.0build 1Added horse, mule, donkey, skeleton horse, and zombie horse, which are rideable.
Added skeleton horsemen.
Added carrot on a stick to direct saddled pigs.
Baby husks now can become a jockey.
Added spider jockeys of husks.
v0.16.0Baby zombie pigmen no longer can become jockeys.
[hide]Bedrock Edition
1.5.0beta 1.5.0.0Changed the steering when using keyboard and mouse by pressing W to move forward and S to reverse.
1.16.0beta 1.16.0.57Added striders.
1.16.100beta 1.16.100.52Added /ride.
1.19.50
Experiment
Next Major Update
Preview 1.19.50.21Added camels behind the experimental gameplay.
Added bamboo rafts behind the experimental gameplay.
[hide]Legacy Console Edition
Xbox 360Xbox OnePS3PS4PS VitaWii USwitch
TU1CU11.001.001.00Patch 11.0.1Added minecart and boat, which are rideable.
TU141.04Added carrot on a stick to direct saddled pigs.
TU19CU71.121.121.12Added horse, mule, and donkey, which are rideable.
TU31CU191.221.221.22Patch 3Added chicken jockeys.
TU46CU361.381.381.38Patch 15Added skeleton horsemen.
Boats can support two riders.
Mobs can now board boats, though they can not control them.
A new set of controls of boats have been introduced.
TU54CU441.521.521.52Patch 241.0.4Added llamas, which are rideable.
[hide]New Nintendo 3DS Edition
0.1.0Added minecart and boat, which are rideable.
Added horse, mule, donkey, skeleton horse, and zombie horse, which are rideable.
Added skeleton horsemen.
Added chicken jockeys.

Issues

Issues relating to "Riding" are maintained on the bug tracker. Issues should be reported and viewed there.

References

  1. MC-477 — resolved as "Works As Intended".
  2. Jump up to: a b MC-67 — resolved as "Fixed".
  3. MC-72440 — resolved as "Works As Intended".
  4. MC-161106 — resolved as "Works As Intended".
  5. MC-201647 — resolved as "Fixed".
    MC-260632 — resolved as "Fixed".
  6. MC-159637 — resolved as "Fixed".
    MC-160332 — resolved as "Fixed".
  7. MC-260086 — resolved as "Fixed".
  8. MC-256506 — resolved as "Fixed".
  9. MC-260849 — resolved as "Fixed".
  10. MC-262324 — resolved as "Fixed".
    MC-261202 — resolved as "Fixed".
  11. MC-152258 — resolved as "Fixed".
  12. MC-262778 — resolved as "Fixed".
  13. MC-80876 — resolved as "Fixed".
    MC-164080 — resolved as "Fixed".
    MC-232840 — resolved as "Fixed".
    MC-242076 — resolved as "Fixed".
    MC-262638 — resolved as "Fixed".
    MC-260490 — resolved as "Fixed".
    MC-263200 — resolved as "Fixed".
    MC-90084
  14. MC-262613 — resolved as "Fixed".
    MC-262615 — resolved as "Fixed".
  15. MC-262636 — resolved as "Fixed".
  16. MC-261123 — resolved as "Fixed".
  17. MC-169530 — resolved as "Fixed".
    MC-249776 — resolved as "Fixed".
    MC-256696 — resolved as "Fixed".
    MC-257342 — resolved as "Fixed".
  18. MC-259475 — resolved as "Fixed".
  19. MC-265296 — resolved as "Fixed".
  20. MC-265388 — resolved as "Fixed".

Navigation