Riding
Put players on horses, pigs, boats and other mounts, and make mobs ride each other the way chicken jockeys do.
Key terms
| Term | What it means |
|---|---|
| Rider | The player or mob sitting on top. |
| Mount | The mob or vehicle being ridden. |
| Saddled | Tamed and wearing a saddle, so a player riding it can steer. New mounts come with a saddle unless you pick without a saddle. |
| Steering item | A carrot on a stick for pigs, or a warped fungus on a stick for striders. Players hold it to steer. |
| Jockey | A mob riding another mob, such as a baby zombie on a chicken. |
Players
riding.rideNewMount(mobs.target(LOCAL_PLAYER), HORSE)
riding.spawnMount(HORSE, pos(2, 0, 0))
riding.dismount(mobs.target(ALL_ENTITIES))
riding.removeRiders(mobs.entitiesByType(HORSE))Players can ride these mounts:
| Mount | What it needs | How to steer |
|---|---|---|
| Horse, donkey, mule, zombie horse | Tame and saddled to steer. Wild ones buck you off until they're tamed. | Look where you want to go. |
| Skeleton horse | Nothing. | Look where you want to go. |
| Llama, trader llama | Nothing, though only tamed ones keep you on. | Llamas can't be steered. |
| Camel | A saddle to steer. Carries two players. | Look where you want to go. |
| Pig | A saddle, always added. | Hold a carrot on a stick. |
| Strider | A saddle, always added. Walks on lava. | Hold a warped fungus on a stick. |
| Happy ghast | A harness, always added. Carries four players. | Look where you want to go. |
| Nautilus, zombie nautilus | Tame and saddled to steer. Swims underwater. | Look where you want to go. |
| Boat | Nothing. Carries two riders. | Use the movement keys. |
| Minecart | Nothing. Follows rails. | It goes where the rails go. |
New mounts that need taming or a saddle get both, unless you pick without a saddle. Pigs and striders also give each rider the item they need to steer: in their hand if it's empty, or in their inventory otherwise.
Jockeys
riding.spawnJockey(ZOMBIE, CHICKEN, pos(2, 0, 0))
riding.summonRider(ZOMBIE, mobs.entitiesByType(CHICKEN))
riding.summonMount(CHICKEN, mobs.entitiesByType(ZOMBIE))
riding.dismountByType(MonsterMob.Zombie)Use dismount all in Jockeys to get one type of mob off its ride without dismounting players or other mob types.
If a monster like a zombie doesn't appear, check your world's difficulty. Monsters may disappear on Peaceful, even in Creative mode. Set the difficulty to Easy, Normal, or Hard to spawn them.
Mobs can only ride certain mounts:
| Rider | Mounts it can ride |
|---|---|
| Zombie, husk | Chicken, cow, mooshroom, pig, sheep, wolf, cat, ocelot, panda, horse, donkey, mule, zombie horse, skeleton horse, zombie, husk, zombified piglin, zombie villager, spider, cave spider |
| Drowned | Everything a zombie can ride, plus zombie nautilus |
| Zombified piglin | Everything a zombie can ride except skeleton horse, plus strider |
| Skeleton, stray, wither skeleton, bogged | Skeleton horse |
| Pillager, vindicator, evoker | Ravager |
| Piglin | Hoglin (a baby one is spawned) |
Zombies, husks, drowned, zombified piglins and piglins ride as babies, except that a zombified piglin riding a strider is an adult. Some mounts only accept riders when they're wild or untamed, so a tamed wolf or a saddled pig can't carry a jockey.
ridingAgent Notes
Data source
- The
rider,mountandplayer-mountpicker tags are generated bytools/new_enum_generator/gridPickerMetadata.ts. They're based on theminecraft:rideablecomponents in Mojang's vanilla behavior pack (github.com/Mojang/bedrock-samples, v1.26.60.5), not on natural spawning rules. - The blocks don't pre-check rider and mount pairs; they run the command and warn in chat when the game rejects it.
The vanilla data isn't a complete guide here: in-game testing showed baby zombified piglins riding zombie
villagers, which the
zombie_villagerdata says only thezombiefamily can ride (zombie_villager_v2accepts anybaby_undead, so the game seems to follow that). Skeleton horses reject zombified piglins, as the data says. Keep the tables on this page in sync with what the game accepts.
Spawn events
- Ride and spawn failures are whispered to the player. The command API doesn't report the world difficulty, so the warning suggests checking it if a monster may not have spawned; it doesn't claim the world is on Peaceful.
- Every command runs through the old
execute <target> <position> <command>form, which parses the nested command with pre-1.19.70 syntax. Summons are writtensummon <id> <position> <event>, without the rotation arguments that newersummonaccepts; adding them is a syntax error in game. Newer slot names such asslot.armor.body(used for the happy ghast harness) may also be rejected there. - Jockey mounts are summoned with
minecraft:spawn_adult(chicken, pig, horse, donkey, mule, zombie horse),minecraft:as_adult(zombie, husk),spawn_adult(zombified piglin),spawn_baby(hoglin) orspawn_adult_piglin_jockey(strider). - Riders are summoned with
minecraft:as_baby(zombie, husk, drowned) orspawn_baby(zombified piglin, piglin), except that a zombified piglin riding a strider is summoned withspawn_adult. - A zombified piglin can only ride a strider that was spawned with
spawn_adult_piglin_jockey, so striders are always summoned with it as jockey mounts (it also saddles them). That event is supposed to add its own rider, but the rider'sminecraft:spawn_as_strider_jockeyevent leaves it without an adult or baby group, and then it can't ride anything (Mojang bug MCPE-236161). The strider spawns alone, andspawnJockeyadds an adult rider itself. spawnJockeytemporarily marks existing mounts of the same type near the spawn position so the new rider isn't sent to an older mount. It usesride ... summon_rideronce on the new mount: Minecraft creates the passenger and tries to seat that same mob. A rejected passenger may still spawn, so the block doesn't retry the summon.- Skeleton variants only ride spiders after a natural jockey spawn event, which only works at night or underground and adds its own skeleton. Spider and cave spider mounts are only offered for baby zombie riders.
- Older games lack some events: husk
minecraft:as_baby/minecraft:as_adult, zombified piglinspawn_babyand zombie horseminecraft:spawn_adultneed 1.21.130 or later; donkey and muleminecraft:spawn_adultandminecraft:spawn_tame_adultneed 1.21.90 or later. - Baby zombie villagers aren't offered as riders: the
zombie_villagerentity the mob enums map to has no baby spawn event. - Skeleton horses and zombie villagers have no adult-only spawn event. About 1 in 5 summoned skeleton horses and 1 in 20 summoned zombie villagers are babies, and a baby can't carry a rider.
Player mounts
- Players can only ride pigs and striders after
minecraft:on_saddled, and happy ghasts afterminecraft:on_harnessed. Those are always applied, even without a saddle. - Saddles are equipped with
replaceitem ... slot.saddle 0 saddleand the mount's saddled event. The event makes the mount steerable even if the item doesn't trigger itson_equipevent. - Skeleton horses are steerable without a saddle in Bedrock, so they get no gear.
- Boats and minecarts aren't mobs, so the picker uses
Item.BoatandItem.MinecartandentityIdmaps them to theboatandminecartentities. Summoned boats are always oak; bamboo rafts and other wood types can't be chosen. rideNewMountusesride @s summon_ride <id> reassign_rides <event>for every mount players can ride as soon as it spawns. That summons the mount and seats the player in one command, so nothing has to find the mount afterward; the saddle then goes on the nearest mount of that type, which is the one being ridden. A failedsummon_ridestill summons a mount, so it isn't retried.- Pigs, striders and happy ghasts only accept players once saddled or harnessed, so for those
rideNewMountsummons the mount at each rider, tags itmakecode_riding_new(searching within 3 blocks, because a mount summoned on a player is pushed away), equips it, then runsride @s start_ridingagainst the tag. That ride is retried for about a second in case the mount isn't ready yet. The tag is removed afterward. - Selectors for a mount summoned at a position allow it to have moved up to 2 blocks.
- Commands can't change which hotbar slot is selected, so the steering item is placed with
replaceitem ... slot.weapon.mainhand 0 keep <item>, which only fills an empty main hand, then given withgiveto anyone still without one. Nothing a player is holding is replaced, and players who already carry the item don't get another.