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 have an item that I want to change the models for based on conditions, so I was trying to use overrides. However, looking into ItemRenderer.getModel() with breakpoints, there are somehow 0 overrides. I checked the BlockModel.Deserializer.deserialize() and all 3 overrides are deserialized, but I have no idea what's causing there to be no overrides when rendering. 

Edited by DavidQF555

  • Author
1 hour ago, diesieben07 said:

https://github.com/DavidQF555/RealityCubes/blob/83bfee885164ed9d0819ec48fa83a1f631a19362/src/main/java/io/github/davidqf555/minecraft/realitycubes/common/items/CapsuleType.java#L53

You cannot create an item instance here. Items must be created during the registry events, it is recommended to use DeferredRegister.

I changed to using Suppliers so now all my items are made in the registry event. The model issue still remains though. 

  • Author
12 minutes ago, diesieben07 said:

Item overrides of parents are not checked.

oh, that's a bit annoying but I can just copy it out then. 

  • DavidQF555 changed the title to [Solved][1.17.1] Item Model Overrides

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.