Jump to content

Recommended Posts

Posted
  On 10/13/2018 at 4:11 AM, Guebeul said:

Hi. How can I display the player's head on the screen?
I thought about using https://minotar.net/ . Now I want to display this through Gui Overlay.

Can you help me?

Expand  

What do you mean by display their head on screen?

About Me

  Reveal hidden contents

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted

There’s a couple ways:

1) get the players skin texture and draw the face. (2D, requires a little basic rendering knowledge, best performance)

2) get the players skin texture and draw a cube. (3D, requires slightly more basic rendering knowledge, good performance)

3) make an ItemStack with a Skull with the players head and render it with the RenderItem. (3D, requires messing around with UUIDs I think, bad for performance)

 

use method 1 in the renderOverlay event

About Me

  Reveal hidden contents

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

  • 2 years later...
Posted

BTW, you'd get the player's skin by first getting their info. To get all players info, first get the connection = minecraft.player.connection, then you can get the info list with connection.getPlayerInfoMap();

  • Guest locked this topic
Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.