Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

I'm trying two different ways to render an extra item and both work.  One is replacing playerrender and the other is using the forge event.

 

The problem that i'm having is I can't for the life of me figure out what the body rotation is on the player.

 

Yaw doesn't work, none of the model subparts for the body seem to be populated.

 

Anybody found a solution to the right variable?

Long time Bukkit & Forge Programmer

Happy to try and help

Hi

 

Based on RendererLivingEntity.doRenderLiving, it appears to be

            float f2 = this.interpolateRotation(par1EntityLivingBase.prevRenderYawOffset, par1EntityLivingBase.renderYawOffset, par9);
            float f3 = this.interpolateRotation(par1EntityLivingBase.prevRotationYawHead, par1EntityLivingBase.rotationYawHead, par9);
[..]
            this.rotateCorpse(par1EntityLivingBase, f4, f2, par9);
[..]
            this.renderModel(par1EntityLivingBase, f8, f7, f4, f3 - f2, f5, f6);

 

Just a guess, haven't tried it myself.

 

-TGG

 

  • Author

Thanks!

Long time Bukkit & Forge Programmer

Happy to try and help

  • Author

Anybody know why rotationYaw refers to the head during this point in time.

 

Maybe I misunderstood, but I though it refereed to the body and rotationYawHead refered to the head.

Long time Bukkit & Forge Programmer

Happy to try and help

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.

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.