Making three specific mobs ride each other in Minecraft?

Making three specific mobs ride each other in Minecraft? - Happy young ethnic couple sitting in train and talking

I was just wondering how you could make a Pig with a Saddle ride an EnderDragon that is riding a MinecartRideable.

Right now, I have:

/summon Pig ~ ~ ~ {Riding:{id:EnderDragon},Saddle:1} 

and have tried:

/summon Pig ~ ~ ~ {Riding:{id:EnderDragon},Riding:{id:MinecartRideable},Saddle:1}

Which summons a Pig with a Saddle riding an EnderDragon.

I want it so that the EnderDragon is riding a MinecartRideable.



Best Answer

Seeing your two attempts - You almost got it the second time around.

So, your attempt was:

/summon Pig ~ ~ ~ {Riding:{id:EnderDragon},Riding:{id:MinecartRideable},Saddle:1}`

Right now, your command looks like this:

Summon a Pig, riding on a Enderdragon AND a Minecart.

To make your command correct, you have to nest the mobs correctly:

/summon Pig ~ ~ ~ {Riding:{id:EnderDragon,Riding:{id:MinecartRideable}},Saddle:1}

Which is:

Summon a Pig, riding a Enderdragon that is riding a Minecart.

If you want a mob that is riding another mob to ride said mob, you have to nest the riding tag inside the second mob.


As stated by MrLemon in an comment, with the Riding tag being depreciated and being replaced by the Passenger tag (which is basically back-to-front) in the next version of Minecraft (currently active in snapshot 15w41a), we can use:

/summon MinecartRideable ~ ~ ~ {Passengers:[{id:EnderDragon,Passengers:[{id:Pig,Saddle:1}]}]}

Which is:

Summon a Minecart that has a Enderdragon in it which has a pig riding on it.

Or to simply put it: The above stuff but back-to-front.
Minecart-Enderdragon-Pig, not Pig-Enderdragon-Minecart.




Pictures about "Making three specific mobs ride each other in Minecraft?"

Making three specific mobs ride each other in Minecraft? - Cheerful couple riding cableway and laughing
Making three specific mobs ride each other in Minecraft? - Father and Son in Home Interior Looking at Each Other with HappinessĀ 
Making three specific mobs ride each other in Minecraft? - Full body of young stylish ethnic couple in casual clothes sitting in wagon while commuting by subway train





Minecraft 1.16.5: How to summon mobs riding mobs




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Samson Katt, Samson Katt, Ron Lach, Samson Katt