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.

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

Featured Replies

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.

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

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.