Skip to content

feat: pet overlay rewrite#339

Merged
lineargraph merged 3 commits intoFirmamentMC:mc-1.21.7from
Septikai:mc-1.21.7-pet-overlay
Nov 15, 2025
Merged

feat: pet overlay rewrite#339
lineargraph merged 3 commits intoFirmamentMC:mc-1.21.7from
Septikai:mc-1.21.7-pet-overlay

Conversation

@Septikai
Copy link
Contributor

A full rewrite of the pet hud to make a lot of improvements and add customisability

Related issue: #95

There is still room for improvement (manually tracking pet exp gain when tab widget is unavailable, Montezuma/rift features, tier boost handling as mentioned below) but this feels complete enough to be added and has been tested extensively under a large number of conditions, with different combinations of tab widget, chat messages and pet menu usage including switching between servers with different widget visibility.

Changes:

  • Pet HUD updates when changing/removing pet in the pet menu, not just when opening it
  • Pets in pet menu are cached, and when there is no relevant entry in cache it scans the tab widget and any relevant autopet or level up chat messages
  • Autopet rules are accounted for
  • Changing pet item is accounted for
  • Pet HUD is hidden in rift
  • Pet exp is tracked in the Pet HUD as it is gained if it can be seen in the tab widget, otherwise just on level up
  • 5 visual styles supported (plain, coloured, plain with background, coloured with background, icon only)
  • Pet HUD is capable of working even if the pet menu has never been opened using the tab widget or a relevant chat message, and remembers them if you switch server to somewhere the tab widget is not available
  • Max level pets and overflow exp are accounted for

Possible Issues:

  • Pet Tier Boost is untested as I am not rich enough for that
  • I did have one case where on triggering autopet then switching server it reverted the previous pet, but I have been unable to replicate that since

Screenshots

Max Level/Overflow Exp image

Styles

Plain image
Colour image
Plain With Background image
Colour With Background image
Icon Only image

@Septikai Septikai changed the title Mc 1.21.7 pet overlay feat: pet overlay rewrite Nov 12, 2025
@lineargraph
Copy link
Collaborator

This works exceptionally well. There are a couple of edge cases (XP just after a level up), but nothing signficant. Thank you very much.

@lineargraph lineargraph merged commit 890ef96 into FirmamentMC:mc-1.21.7 Nov 15, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants