Jump to content

how to display the player's on the screen?


Guebeul

Recommended Posts

3 hours ago, 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?

What do you mean by display their head on screen?

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

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)

Link to comment
Share on other sites

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

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

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)

Link to comment
Share on other sites

  • 2 years later...
  • Guest locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

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