Making an entity steal the players Minecraft skin

Started by fotty1 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Making an entity steal the players Minecraft skin

I’m trying to make the Masked from lethal company and in the game they kill the player and create a evil clone of the player. I’d like to make it so when the entity is killed by the mask, a new entity would spawn with the players skin. I know this is kind of hard to accomplish and would take some coding but if anyone has any idea or could show me how, that would be great! 

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You just need to find where…
Thu, 10/03/2024 - 19:35

You just need to find where minecraft stores the player skin texture. Then go into the code and replace the texture string of the entity with that of the player string.

Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
fr6_17 thanks for the reply,…
Sat, 10/05/2024 - 00:09

fr6_17 thanks for the reply, two questions. would i go into the Renderer.Java code for the entity to change that and what exactly do I need to type within the string for it to locate the player skin file. secondly, would this method work in multiplayer? say for instance another player gets killed by the entity, would it steal that players skin or mine?