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.

Featured Replies

Posted

Hi, I'm trying to make an Item that can be equipped the same way as a pumpkin or a skull. I've been looking in the BlockPumpkin and ItemSkull code but there's nothing there O.o

 

Do someone know how to make it without extending ItemArmor? Thanks

  • Author

Override

isValidArmor

in your Item class.

 

One last thing. I made that and it worked but the item is rendered too small. I thought that overriding getArmorModel would change that but the method is never called. What should I use?  ???

  • Author

You mean inside the inventory? In first person when held? Also post your model files.

 

I'm trying to use a ModelBiped right now.

I mean in third person when equipped :) sorry for forgetting to tell you that.

Now I'm thinking: Is there a "display" element for thirdperson_equipped in the item.json?

  • Author

You mean inside the inventory? In first person when held? Also post your model files.

 

I'm trying to use a ModelBiped right now.

I mean in third person when equipped :) sorry for forgetting to tell you that.

Now I'm thinking: Is there a "display" element for thirdperson_equipped in the item.json?

 

Oh forget it, there's a "head" element for "display" inside item.json

 

Like this:

"display": {
        "gui": {
            "rotation": [ 30, 225, 0 ],
            "translation": [ 0, 3, 0 ],
            "scale": [ 1, 1, 1 ]
        },
        "fixed": {
            "rotation": [ 0, 180, 0 ],
            "translation": [ 0, 4, 0],
            "scale":[ 1, 1, 1 ]
        },
        "ground": {
            "rotation": [ 0, 0, 0 ],
            "translation": [ 0, 3, 0 ],
            "scale": [ 0.5, 0.5, 0.5 ]
        },
        "thirdperson_righthand": {
            "rotation": [ 45, 45, 0 ],
            "translation": [ 0, 3, 0 ],
            "scale": [ 0.5, 0.5, 0.5 ]
        },
        "head": {
        	"translation": [ 0, 8, 3.5 ],
            "scale": [ 1.5, 1.5, 1.5 ]
        }
}

 

 

  • Author

ModelBiped is something you use for entities, not items.

Yeah sorry I thought you were talking about the one I was trying to use on getArmorModel :)

 

Please post the complete model JSON.

The "head" part in "display" is making what I wanted, that's what I wanted to say with "forget it" n.n Thanks for your help!

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.