Started by
FlyingCatOfLol
on
Topic category: Help with Minecraft modding (Java Edition)
i have a villager with a crossbow, and everytime they shoot and miss and hit another villager with a crossbow, they shoot each other, which i do not want. Is there a way to avoid this like how pillagers shoot each other and dont care?
Yup, you can cancel event of being hurt, setting them like that:
It's mechanics for my own mod, but you get the idea. Of course if you have only one type of mob, you just need one "source entity" and one "event/target entity", but I used it widely for whole added nation.