Riding

Riding (aka. mounting) is the behavior that allows an entity to mount another entity.

Description
Riding connects one entity to another. An entity riding another entity is called a passenger, and an entity being ridden is called a mount. An entity can be both a passenger and a mount at a time if it is riding on another entity while being ridden by other entities, an entity can be both a passenger and a mount.

One entity can only ride at most one entity at a time. Most entities support only one passenger, but boat, bamboo raft and camel can support two passengers at a time. However, by modifying entity NBT through commands, an entity may be ridden by any number of entities.

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.

When a player leaving the world, all the entities that is ridden by 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.

For an entity that is riding by multiple passengers, only the first passenger has control over the mount.

$$, marker cannot be ridden.

Passenger
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 have no entity collision and collision with blocks.
 * Passengers cannot be moved by knockback, explosion, fishing rod, and trident with torrent effect.
 * Passengers cannot be teleported by ender pearl, chorus fruit, end gateway and . enderman and shulker cannot teleport.
 * Passengers do not calculate their falling height. When starting riding, the falling height is reset.
 * Passengers cannot be transported by nether portal, end portal.
 * 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, the health bar of the mount is displayed on the player's HUD in the form of.

Mount
Mounts have the following behaviors:


 * Mounts cannot be transported by Nether Portal, End Portal.
 * When a mount receives falling damage, all passengers also receive falling damage.
 * $$, if a mount is immune to falling damage, the damage is not passed to passengers.
 * $$, even if a mount is immune to falling damage, the damage is still passed to passengers.

The following mounts have different movement behavior when they have a passenger:
 * Horses, donkeys, mules, zombie horses, llamas, trading llamas and camels cannot swim when they are ridden. They are submerged in the water, and drive their passengers off.
 * When a minecart has a passenger, the speed obtained from powered rail is reduced.

Control
The movement of the following mounts are controlled by their passengers:


 * saddled horse
 * saddled donkey
 * saddled mule
 * saddled camel
 * all skeleton horse / saddled skeleton horse
 * saddled zombie horse

The following mounts can be controlled by a player when holding a certain item:


 * Players can control it when holding carrot on a stick.
 * Players can control it when holding warped fungus on a stick.

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 opens the interaction interface of these creatures instead of the normal item bar interface:


 * tamed horse
 * tamed donkey
 * tamed mule
 * tamed llama
 * ]] tamed camel
 * tamed Skeleton Horse
 * ]] tamed Zombie Horse
 * ]] tamed Zombie Horse

Posture
The following passengers have sitting posture when riding: •

•

•

•

•

•

•

•

•

•

•

•

•

•

•

•

Dismount
Mobs usually cannot leave their mounts on their own, but there are many ways to make passengers leave their mounts:
 * When the passenger is a player, the player uses control.
 * When the mount is dead or destroyed.
 * When riding on untrained horses, donkeys and llamas, being driven off by them.
 * When riding horses, donkeys, mules, zombie horses, llamas, trader llamas and camels in water, being driven off by them.
 * Being driven off when the riding minecart is passing a powered activator rail.
 * $$, when the passenger is pulled by fishing rod.
 * Dismounting by command.