Posted November 11, 20168 yr 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 Do someone know how to make it without extending ItemArmor? Thanks
November 11, 20168 yr 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?
November 11, 20168 yr 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?
November 11, 20168 yr 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 ] } }
November 11, 20168 yr 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.