To make this more direct, I'm trying to make an enchantment that does something like thorns (but doesn't deal damage). I already have the code to make it do what it's supposed to, but not how to have it detect what entity to do it to.
I'm trying to make a new enchantment for armor, and I need to have it detect this. How might I go about doing it? Using latest recommended forge (1.7.2).
I'm fairly new at forge (I used to a while back, but I've lost my knowledge), but I'll be able to understand whatyou say, so simplicity is not required.