How do I make a mob riding another mob and make the rider invisible?

How do I make a mob riding another mob and make the rider invisible? - Content female customer with long curly hair wearing casual outfit sitting at wooden table with netbook in classic interior restaurant while making online order

I want to have an invisible blaze riding a bat so it looks like a bat is shooting fireballs. If I do /summon blaze ~ ~5 ~ {ActiveEffects:[{Id:14,Amplifier:1,Duration:999999,{Riding:{id:"Bat"}}}]}, it doesn't work. Could somebody help me?



Best Answer

When you're debugging commands, always make sure to edit them in an external editor, so you can have proper indentation. This way you can immediately see the errors.
This is your command:

/summon blaze ~ ~5 ~ {
    ActiveEffects:[
        {
            Id:14,
            Amplifier:1,
            Duration:999999,
            {
                Riding:{
                    id:"Bat"
                }
            }
        }
    ]
}

As you can see the Riding tag is still part of the compound list for active effects, which makes no sense. If you move that to the correct location:

/summon Blaze ~ ~5 ~ {
    ActiveEffects: [
        {
            Id:14,
            Amplifier:1,
            Duration:999999
        }
    ],
    Riding:{
        id:Bat
    }
}

The command works perfectly fine. Here again in one line:

/summon Blaze ~ ~5 ~ {ActiveEffects: [{Id:14,Amplifier:1,Duration:999999}],Riding:{id:Bat}}



Pictures about "How do I make a mob riding another mob and make the rider invisible?"

How do I make a mob riding another mob and make the rider invisible? - Girl Riding Black Horse
How do I make a mob riding another mob and make the rider invisible? - Person Writing While Using Phone
How do I make a mob riding another mob and make the rider invisible? - Unrecognizable crop African American female pouring essential oil in glass bottle while making liquid incense at table



How do you make a mob ride another mob?

Your best option is to put an invisible horse there and teleport the visible mob to the horse, but even that only works if you can actually click it, which might not work with a ravager, because it's so big. Show activity on this post. You can ride an invisible horse that is riding the entity that you want to ride.



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: Yan Krukov, Alexander Dummer, Pew Nguyen, Anna Shvets