
Display an alert icon above mobs that are aggroing onto you
Ever ran into mobs that path towards your general direction and wondered whether they are aggressive or not? With this mod, you can see who has an issue with you being around their vicinity and teach them a lesson or book it out of there.
This mod needs to be installed on both client and server to work. It won't crash or do anything if installed on just 1 side. For singleplayer you just need to install it normally.
Requires Fabric API for Fabric versions.
Mod config file should be located under "config" folder, inside your Minecraft root folder, .minecraft in most cases. Where this is depends on your launcher.
Aggro icons won't show if mob has invisibility or if you have blindness or darkness. That would be too easy.
Should work on anything that uses the Mob#target property, or those whose brain uses ATTACK_TARGET memory module. Goats are special-cased with dedicated ram behavior mixins so mobs reusing those behaviors should work too.
Should this mod play an alert sound when a mob targets you? Result: Yes, to be implemented.
I did not want to take any copyright risk for the alert sound, so I found a close recreation licensed under Creative Commons 0 from freesound.org. Should you want to use a different sound, a resourcepack can be used.