Jump to content

RESOLVED! [1.14] How do you make modded entities hold items?


Recommended Posts

Posted

This is probably something really simple, but over the past couple of days I just can't seem to figure it out. I've looked everywhere I could think of in the source code, and on google, and have gotten nowhere. Is there possibly some way to set a shape in the model to the arm or something like that? Thanks.

Posted
2 minutes ago, ImZDUDE9 said:

This is probably something really simple, but over the past couple of days I just can't seem to figure it out. I've looked everywhere I could think of in the source code, and on google, and have gotten nowhere. Is there possibly some way to set a shape in the model to the arm or something like that? Thanks.

Try adding a HeldItemLayer to your mob renderer.

Posted

Thank you so much, works perfectly! New problem though, the placement of the items are a bit off. Would there be a way to reposition them and possibly scale them down a bit? Here's a screenshot: XpEqgzE.png

Posted
51 minutes ago, ImZDUDE9 said:

Would there be a way to reposition them and possibly scale them down a bit?

The easiest way would probably be to make your own class that extends HeldItemLayer and add translation and scaling before rendering the item.

  • Like 1
Posted
8 minutes ago, vemerion said:

The easiest way would probably be to make your own class that extends HeldItemLayer and add translation and scaling before rendering the item.

Once again, works perfectly! Thank you very much :)

  • Like 1
  • ImZDUDE9 changed the title to RESOLVED! [1.14] How do you make modded entities hold items?

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.