Minecraft – How to make mobs attack each other in Minecraft

minecraft-commandsminecraft-java-edition

Is there a relatively easy way to make mobs attack other mobs, for example zombies attack other zombies? I have tested summonning a snowball as another mob over a zombie, so the zombie thinks it was the other zombie that hurt him, but it didn't work at all, or I did something wrong.
I'm playing in 1.16 (20w22a).
I tested this command:

/execute at @e[type=minecraft:zombie,limit=1,sort=nearest] as @e[type=minecraft:zombie,limit=1,sort=furthest] run summon minecraft:snowball ~ ~3 ~

I also tested these commands, but they didn't work 🙁

1 /summon zombie ~ ~ ~ {UUIDMost:1L,UUIDLeast:0L}
2 /summon zombie ~ ~ ~ {Tags:["target"]}
3 /execute as @e[tag=target] at @s run summon snowball ~ ~4 ~ {owner:{L:0L,M:1L}}

here is an video link!

Best Answer

Though this is not universal to all mobs, you could name a vindicator "Johnny", and it would attack all mobs in its vicinity, except for other illagers.

Alternatively, you could try spawning a skeleton and a different mob, and going into Survival mode, running between the two mobs. The skeleton would try and shoot you, but you dodge it, causing the fired arrow to hit the other mob. This would cause a mob fight to be staged.

I hope these methods work well.