▲ 19 r/MinecraftCommands
Im trying to make mobs around a "captain" follow him and get closer to it, im doing this with the damage command but for some reason the captain starts hitting himself. This stops only if the zombie tracks other entity. Why does this happens? There is a way to clear which entity is targeting?
Update: So, I tried the same command on vanilla(same version), and happens too. But, as a discovery, if the captain is a zombie and damages a skeleton it doesn't kill itself
/execute as @e[tag=captain] run damage @e[tag=!captain,distance=1..50,limit=1,sort=nearest] 0 minecraft:generic by @s
u/Fresh-Photograph-106 — 27 days ago