This plugin detects whenever purposeful damage is dealt between two entities. Right now, it is somewhat based off the original mineflayer-bloodhound plugin. However, I believe I will rewrite the logic entirely due to having better support of detecting attacks.
- Fix ranged attacks. I don't check whether or not the shot hits at all. This is bad.
- Ditch the awkward check system, instead directly infer causation due to knowing which entity is hit ahead of time (melee).
- Done via predicting hit/shot, then awaiting damage from that entity. If ticks elapsed exceeds arrow travel/max ping allowance, entity was not hit.
- Otherwise, entity is hit.
- Expose more methods.