Board Thread:General Mod Discussion/@comment-36683454-20190324030252

"*The registered mob is given targeting AI, but not attack AI. Thus, it will be able to select appropriate attack targets, but if it is not already capable of attacking a target, it won't actually be able to attack those selected targets."

^This is what has been said in the wiki, but it doesn't seem to work for me

I am trying to merge helpful villager mode into lotr, aka registering the villager into a faction so they may interact better with lotr world, however during my testing something is wrong:

Assigned villager soldier to hostile, and spawned a dwarf, and dwarf killed the soldier, since that doesnt happen until I registered fighter, this says the register successfully made dwarf see the soldier as hostile faction

The thing is, the soldier villager's target AI doesn't seem to change. The mod was using a very "primitive" way for target AI, the soldier will only attack some of the entities the mod author listed, for example, zombies, but won't attack any non-listed mob like witch, and won't join in the battle if fellow villagers are attacked, and they don't even fight back if the mob attacking him is not on his list.

However this should be the target AI, which should have changed when I register the soldier, given the quote above. But it didn't and the soldier would just sit and watch the spawned dwarf to kill everyone including himself. Being able to kill the zombie says they do have an attack AI, but the target AI doesn't seem to be affected

Is there anyway I can make their target AI work like a normal lotr entity?

Tested again with vanilla zombies, the zombies won't attack the dwarf neither, so I guess the target AI is not over write at all 