Jump to content

How can I render the custom entity so that it can hold objects in its hands?


Recommended Posts

Posted (edited)

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
Posted

But  new HandLayers(this)

That is already in :

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

 

Posted

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

 

Posted

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)

Posted

I did it again

It's well done?

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

 

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...

×   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.

Announcements



×
×
  • Create New...

Important Information

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