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 attempting to cancel the vanilla sword render when the player swings, and replace it with my own. I've subscribed to that event, cancelled it, now I just need to call a render class. What do I need to do from there in terms of registering and calling a renderer?

I'm almost tempted to load in custom models and register them as entities, but I'd rather not do that if I can help it.

Edited by Turtledove

  • Author
12 minutes ago, kaydogz said:

I'd look into net.minecraft.client.renderer.FirstPersonRenderer

The issue isn't how to register items or even the rendering step, because I'm using the vanilla items so it's already registered, I'm not sure where the animation logic is done and whether I need to register a renderer for items already registered.

ย 

I've written a keyframe animation API for my entities but all of that logic is done in the model class depending on model states, but for items, I don't know how Minecraft handles animation on a tick-by-tick basis for equipped items.

Edited by Turtledove

  • Author

It looks like I should be able to directly do the rendering from my event handler, but damn it's super finicky. Can't get the arm to show up on screen, but I know it's there because when I look side to side really fast I see it floating there, trailing.

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.