Jump to content

[1.16.1] Help rendering mob in a Gui


Recommended Posts

I'm attempting to render a mob within my Gui screen. In the past I was able to do this using getRenderManager#renderEntity, but since this no longer exists I am trying to use getRenderManager#renderEntityStatic. 

My current attempt: 

        Minecraft.getInstance().getRenderManager().renderEntityStatic(new PigEntity(EntityType.PIG,field_230706_i_.world), 0.0D, 0.0D, 0.0D, 0.0f, partialticks, matrixStack, field_230706_i_.getRenderTypeBuffers().getBufferSource(), 500);


This method causes some weird orientation, as shown in the screenshot below. I just want this entity to render from a normal, third person viewpoint. There used to be a getRenderManager#setPlayerViewY but this is gone as well. I found the method getRenderManager#setCameraOrientation, but it doesn't seem to do anything (I'm horrible with Quaternions).  I tried:


Any suggestions? 



Pig feet are nice but what I'm really tryna stare at is some thicc cakeee ;) 

my simple Gui screen class: https://pastebin.com/KMtCvxRy


Edit: I figured it out. Just needed to change z pos to move it in front of me lol.


Edited by Electric
Solved problem
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

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