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

What would be the code to render the entity's hand so that it can hold objects in its hands?

  • Author

Is the code okay like this?

 

public EsqueletoDelCieloRenderer(EntityRendererManager renderManagerIn) {
						super(renderManagerIn, new ModelSkeletonModel<>(), 0.5F);
						this.addLayer(new HandLayers(this));
					}

 

Edited by Jose3T5
Spanish language

  • Author

But  new HandLayers(this)

That is already in :

public EsqueletoDelCieloRenderer(EntityRendererManager renderManagerIn) {
						super(renderManagerIn, new ModelSkeletonModel<>(), 0.5F);
						this.addLayer(new HandLayers(this));
					}

 

HandLayers is not a class, if you haven't create it
you need to cerate your own, like i already told you,
you can take a look at the vanilla layer classes e.g. ItemInHandLayer

 

nop its for 1.17.1 but if you want to use this for 1.16.5,
you need to search in your IDE for the class since it can be
that the class name I gave you above is different (since 1.17 use mojang class names)

  • Author

I did it again

It's well done?

public EsqueletoDelCieloRenderer(EntityRendererManager renderManagerIn) {
						super(renderManagerIn, new Modelcustom_model<>(), 0.5F);
						this.addLayer(new HeldItemLayer(this));
					}

 

2 hours ago, Jose3T5 said:

It's well done?

this question is completely irrelevant, you could simply test it
if it works it is done, if it doesn't work it's not done

  • Author

I was just wondering, it doesn't work, so how would it be for the entity to be able to hold objects in its hands

First of all do never use @OnlyIn since it is only for vanilla, second since you are creating a skeleton you can look at the vanilla skeleton renderer

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.