Pillagers not targeting pillagers in my mod.

Need Help - Mod Dev

I made a mod in which pillagers spawned in a special way have some goals. One of these goals make so pillager target what I hit. However, the pillager doesn't attacks another pillager. I have tried setting the 'target' field directly. I also made a mixing which injects into canTarget() at head and returns true regardless of mob if pillager is owned. Also done this with isInSameTeam() at head but this returns false. Can someone help or explain what is the problem in this???

Posted Jan 25, 2026, 12:19 PM UTC

21
Loading comments…