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

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?

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.

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

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

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.