Factions
Give any mob a side with one field:plugins/NMEntities/factions.yml:
Two things to know:
- Relations are one-way as written. The example above is only mutual because both halves are spelled out, which is deliberate: you can build a hunter that stalks a creature that never hunts back.
- Players are the reserved faction
players, so you can write relations against them without tagging anything. A mob with nofaction:behaves exactly as before.
Threat
Damage generates threat equal to the damage actually dealt, after armor. Mobs retarget on a timer to whoever tops their table, and threat fades over time so old grudges lapse. Four knobs inconfig.yml:
retarget-interval for snappier switching.

