Jump to content

[1.12] make custom IBakedModel use item/handheld instead of item/generated


Recommended Posts

Posted

I have a custom modeled sword, but in hand it holds not like a sword but like an apple (i.e. it's not rotated). Since I'm not good with the handleperspective part of a custom model yet, is there a way to use item/handheld rather than item/generated when using event.getRegistry().put() to "register" the new model? If not, what are the transforms that item/handheld uses to make the held item face forward, since I've dug for it in the workspace but can't seem to find it? Link to relevant github page here, and thanks in advance.

Posted (edited)

Look at diamond_sword.json

{
    "parent": "item/handheld",
    "textures": {
        "layer0": "items/diamond_sword"
    }
}

It renders everything automatically.

So yes you can and it's the way minecraft does this

you don't need something else I think.

Edited by _Cruelar_
typo and forgot something

My Projects:

Cruelars Triforcemod (1.12 release; 1.14 alpha soon coming)

 

Important:

As my mod is on at least 10 different third party sites without my permission, I want to warn you about that with a link to StopModReposts

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.