Minecraft Java Edition – How to Make a Fish Ride an Invisible Squid in 1.9

minecraft-commandsminecraft-java-edition

My friends and I are trying to make realistic aquariums in 1.9 using commands with no mods or plugins to do this for us. How could I spawn different kinds on fish on invisible squids? Thanks!
I have already tried /summon Item ~ ~+1 ~ {Item:{id:minecraft:fish},Count:1,{Riding:{id:"Squid"}}

Best Answer

The Riding compound tag has been removed in 1.9. The Passengers list tag takes its place, except the stack order is reversed (in that the host entity is the one in the /summon syntax, rather than the one at the lowest depth of Riding).

The Count tag must also be placed inside the Item compound.

/summon Squid ~ ~+1 ~ {Passengers:[{id:"Item",Item:{id:minecraft:fish,Count:1}}]}