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

RenderEntityItem uses the model retrieved from ItemModelMesher#getModel(ItemStack), but, unlike all of the other points of rendering items / blocks, does not check if the model is an ISmartItemModel, IPerspectiveAwareModel, or anything else of that nature (there is no longer even an ENTITY camera transform...).

 

Currently, the only way I can think of to render my item's custom smart model while in Entity form is to actually create a custom EntityItem and register a different render class for it. I can do that, but the entity itself doesn't actually need to do anything special, and the renderer would just be making calls to my smart item model, so it seems kind of like overkill.

 

Does anyone happen to know if there are plans amongst the Forge team to correct this, or is there already a solution that I am just overlooking?

Does anyone happen to know if there are plans amongst the Forge team to correct this,

 

You could suggest it on the suggestions board.

ItemModelMesher.getItemModel(ItemStack) actually is the place that calls the ISmartItemModel hook. As for perspective - default perspective (without additional perspective transformations) is what's used for entities, so you should make your default model be the one used for in-world entity.

  • Author

You're right, and I had seen that there in ItemModelMesher before, but totally forgot about it. My problem is just that the default model is not the one I want to render in the world and IPerspectiveAwareModel#handlePerspective is not called for EntityItems, which is slightly unfortunate.

 

Still, changing which model I use for the default is pretty simple, though I will lose out on the changes I'd like to make based on perspective.

 

Speaking of which, why isn't there an EntityItem camera transform anymore? Or is that 'NONE' ?

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.