How could I make a mob that looks like a certain player?

Started by SirPogsalot on

Topic category: Help with modding (Java Edition)

Last seen on 04:15, 27. Mar 2024
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How could I make a mob that looks like a certain player?

Is it possible to add a bit of code or something that takes a player's skin and uses it as the texture for an entity? I don't mean just one player; basically what I want to do is create an entity that spawns when a player dies, and that entity should look like the player that just died. Is this possible?

Last seen on 13:29, 26. Mar 2024
Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm actually making…
Fri, 04/09/2021 - 21:32

I'm actually making something very similar where you can spawn a clone of yourself. I don't exactly know the answer, I just had an idea. I doubt it will work because I think it will just use your specific skin, but it's worth a try since I haven't done it or tested it out yet. I don't know how to make it appear when the player dies, but you might be able to take it from the default Minecraft skin. To elaborate, what I mean is, when you make a skin, it replaces the default one. Maybe you could try setting the skin of the biped entity to that PNG? All you would have to do is locate it through the "Import Texture" button or whatever it's called. It's a bit of a hassle to locate it manually, so I would just copy and paste it in your downloads folder. Tell me if it works. I doubt it will because I think it will just use that picture and no one elses.