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.

[SOLVED] [1.8] New Rendering With RenderHandEvent and RenderPlayerEvent

Featured Replies

Posted

Hi

I am currently trying to mess around with the first person arm drawing (maybe seen from an older post, this post has an exception, though) but with an exception - I want to try and do this rendering in an event. When I cancel the RenderHandEvent, the first person player hand is still rendered but when in third person the player is not rendered (the canceled event). Why is that happening? Some other modders believed that the RenderPlayerEvent was not working / being called, but I have tested this and you have to use the subclasses pre / post for that event to be executed. What my real question is, though, which event would you stop the first person render from occuring and how would you start drawing new arms? This has been my only issue so far upon th release of my mod, if it can be achieved I would be pretty happy, any help is highly appreciated, thanks all in advance!

 

@SubscribeEvent
public void renderHandEvent(RenderHandEvent event)
{
    event.setCanceled(true);
    //New render here except that this event cancels the 3rd person render, not the first person hand
}

@SubscribeEvent
public void renderPlayerEvent(RenderPlayerEvent.pre event)
{
    //this event does indeed work, unless my 1.8 release is old
}

Development of Plugins [2012 - 2014] Development of Mods [2012 - Current]

  • Author

I'm not going to bother with those events at all, I have got the problem solved and the first person arm modified using the RenderPlayerAPI RenderPlayerBase. This topic is self solved!

Development of Plugins [2012 - 2014] Development of Mods [2012 - Current]

Guest
This topic is now closed to further replies.

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.