How do you display the face of a player in an Overlay?

Started by Mecho on

Topic category: Help with modding (Java Edition)

Last seen on 07:29, 9. Oct 2024
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do you display the face of a player in an Overlay?

I'm making a mod where a game is played in rounds and if someone loses a round they lose a life, of which is displayed in an Overlay.

But I want to display the face of every player's Minecraft skin (exactly how you see in the tab list) where I've put the grey boxes in the image (behind the hearts), just to make it clear who has however many lives, but I can't find any tutorials on how to do this. Obviously, there is the entity model, but that displays the whole entity, and not just the face, of which isn't satisfactory.

Thanks you in advance to anyone who can help 🙏

 

referenced image:

https://imgur.com/7cuZ9Iz