Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted

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.

Posted

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.

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.