I want to know if it’s possible to give a villager an attacking goal, and how I can do it.
I’ve not verified it, but you can technically give a Villager attacking goals as this example plugin does for adding goals to a Human entity. The difference would be that a Villager cannot show the equipped item.