Posted July 25, 20169 yr I wonder how would I go about doing this. I have an item that can hold stacks of items. How do I render one of the items its holding on top the item itself?
July 25, 20169 yr I suggest looking at how RenderSnowball renders its ItemStack 's model. You can also look at how Botania's altar renders its contents here. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
July 25, 20169 yr Author I suggest looking at how RenderSnowball renders its ItemStack 's model. You can also look at how Botania's altar renders its contents here. Wow, so some items on Vanilla Render different from others in inventory, didn't know that, gonna take a look at the snowball as you suggested and see if I get an idea on how to implement that for my mod. Thanks a lot.
July 25, 20169 yr I suggest looking at how RenderSnowball renders its ItemStack 's model. You can also look at how Botania's altar renders its contents here. Entity renders and TESRs have hooks that allow complete control of rendering. As far as I am aware, there is no longer anything like that for items.
July 25, 20169 yr I suggest looking at how RenderSnowball renders its ItemStack 's model. You can also look at how Botania's altar renders its contents here. Entity renders and TESRs have hooks that allow complete control of rendering. As far as I am aware, there is no longer anything like that for items. I misread the OP, I thought they were making a block with a TESR that rendered a floating item. This won't work for an item displaying another item. To render another item on top of your item, you'll need to create your own ICustomModelLoader , IModel and ItemOverridesList implementations. You'll probably also need an IBakedModel . I can't tell you how to implement these, because I don't know myself. You'll need to look at examples in Forge itself, e.g. ModelDynBucket . diesieben07 has also discussed this with other people here and here, though a lot of the advice was for 1.8.9. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
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.