Jump to content

Recommended Posts

Posted (edited)

Hello, so for testing purposes I want to spawn in a "fakeplayer". Now Ive figured out how to do that, 

 

entity = new EntityOtherPlayerMP(mc.world, mc.session.getProfile());

 

blabla copy the angles position etc, I can also copy the inventory and that way I have a FakePlayer that is me and maybe wearing my stuff and add it to the world.

Now if I do it this way the entity actually has my skin. But if I take any other gameprofile instead of mc.session.getProfile() with any name and uuid the spawned entity will have the name of the player but not his skin, it will have the vanilla steve or alex skin. Now secondly I want to give the player my absorption amount. So that when I just ate a gapple the entity actually gets my health and the yellow hearts. So I did:

 

entity.setHealth(mc.player.getHealth() + mc.player.getAbsorptionAmount());

 

Now this kinda works, copying my health but it caps out at 20 so when I eat a gapple the extra hearts wont show up. So I actually want to give the entity my absorption as well.

Now can anyone help me with this? Giving the spawned entity a skin preferably the one the actual player that I use the UUID from has, and giving it my absorption?

 

EDIT: Sorry forgot to add: Im working on Minecraft 1.12.2

Edited by w1qf1f1f1
Forgot Something
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.