How to make mobs not attack each other?

How to make mobs not attack each other? - Young multiracial male millennials in stylish clothes fighting together on street and looking at each other

I'm making a custom boss battle where it spawns mobs to fight for it, but the skeletons attack each other. How can I prevent this from happening in Minecraft 1.16.5?

I am using custom commands to summon the mobs, and I put them on the team EndMobs However, when I tried to spawn it with the tag {Team:EndMobs}, the command output says, "Unable to add mob to team. Are you sure the team exists?"

However, when i tried looking at the team, it said [EndMobs] so I decided to add the mob to [EndMobs] instead, and this time, console didn't throw out an error, so I assumed it worked. However, even if I modify the team with friendly fire off, they still attack each other. When one tries to shoot the player, they end up shooting another mob.



Best Answer

I have a theory, but it is only if you are currently in creative mode. Otherwise, I can not think of any other way to solve this. My theory is that you have to be in survival mode to make the skeletons fight you.




Pictures about "How to make mobs not attack each other?"

How to make mobs not attack each other? - Side view glad young female florists wearing aprons arranging delicate flowers and looking at each other contentedly while working together in light floral store
How to make mobs not attack each other? - Side view of happy young woman smiling and touching face of tired boyfriend making grimace while standing together in green forest during hiking trip
How to make mobs not attack each other? - Father and Son in Home Interior Looking at Each Other with HappinessĀ 



How do you make mobs not fight each other in Minecraft?

Some mobs fight others for other reasons than retaliation, such as hunting and fighting natural enemies.

Why do mobs attack each other?

Piglins and wither skeletons will attack each other on sight. The Wither will attack any mob that isn't undead or a ghast.




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

Images: Keira Burton, Amina Filkins, Vanessa Garcia, Ron Lach