SkyHanni icon indicating copy to clipboard operation
SkyHanni copied to clipboard

Feature: Mob Highlight

Open ItsEmpa opened this issue 8 months ago • 7 comments

Dependencies

  • #2096
  • #2112

What

Refactors the MobHighlight class to (mostly) use mob detection. For highlighting zealots the old EntityMaxHealthUpdateEvent is used instead, as mob detection currently does not work with mobs that are far away.

Made it possible to simply use Entity.highlight() to highlight entities, without having to remove the highlight after that (as it now gets removed with the EntityLeaveWorldEvent).

Also did some cleanup in EntityUtils and added a function to more easily know if an entity would have a certain base health if it wasnt corrupted/runic. Also added a feature to highlight runic mobs because why not.

Changelog New Features

  • Added Runic Mob Highlight. - Empa

Changelog Technical Details

  • Refactor MobHighlight to use Mob Detection. - Empa
    • With the exception of Zealot-related highlights.
  • Added an Entity.highlight(color) function. - Empa
  • Added EntityLivingBase.matchesHealth() for checking if a mob matches a certain health when runic/corrupted. - Empa

ItsEmpa avatar Jun 17 '24 12:06 ItsEmpa