The Meaning of Life, the Universe, and Everything.
Location:
California
Join Date:
6/21/2013
Posts:
45
Location:
California, USA
Minecraft:
Creepinson101
Xbox:
Creepinson101
Member Details
UPDATE:
I have done a lot more work. Now I only need to render the other players correctly and not just the current player themselves. Right now the other players render inside me in the same exact place...
UPDATE:
I have done a lot more work. Now I only need to render the other players correctly and not just the current player themselves. Right now the other players render inside me in the same exact place...
Here is my code:
https://pastebin.com/kuR60HrX
@SubscribeEvent
public void onPlayerRender(RenderPlayerEvent.Pre event) {
if (event.getEntity() instanceof EntityPlayer && !event.getEntity().isInvisible()) {
event.setCanceled(true);
EntityPlayer player = (EntityPlayer) event.getEntity();
EntityLivingBase living = (EntityLivingBase) event.getEntity().getEntityWorld()
.getEntityByID(player.getEntityId());
if (RenderHelper.currentRender == null) {
RenderHelper.currentRender = RenderHelper.getRenderFromID(0);
} else {
RenderHelper.currentRender.doRender((EntityLivingBase) event.getEntity(), 0, 0, 0, 0, 0);
}
}
}
Hello there. I am trying to disguise players and I have setup a bunch of stuff already!
But the only issue is.... The player renders invisible! When entityshadows in on, there are shadows.
Any help would be appreciated. Thanks!
https://pastebin.com/RgFKDnE4
https://pastebin.com/3VS5FL4V
https://pastebin.com/wFuABxdH
https://pastebin.com/Sqb5XxB0
https://pastebin.com/7mtPFRTz