Posted November 8, 20214 yr What would be the code to render the entity's hand so that it can hold objects in its hands?
November 8, 20214 yr you need to add a custom RenderLayer, you can use the vanilla HandLayers as an example
November 8, 20214 yr Author Is the code okay like this? public EsqueletoDelCieloRenderer(EntityRendererManager renderManagerIn) { super(renderManagerIn, new ModelSkeletonModel<>(), 0.5F); this.addLayer(new HandLayers(this)); } Edited November 8, 20214 yr by Jose3T5 Spanish language
November 8, 20214 yr Author But new HandLayers(this) That is already in : public EsqueletoDelCieloRenderer(EntityRendererManager renderManagerIn) { super(renderManagerIn, new ModelSkeletonModel<>(), 0.5F); this.addLayer(new HandLayers(this)); }
November 9, 20214 yr 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
November 9, 20214 yr 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)
November 9, 20214 yr the ItemInHandLayer is called in 1.16.5 HeldItemLayer, everything else should be the same
November 9, 20214 yr 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)); }
November 9, 20214 yr 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
November 9, 20214 yr 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
November 10, 20214 yr 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.