Jump to content

[Solved][1.17.1] Item Model Overrides


DavidQF555

Recommended Posts

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
Link to comment
Share on other sites

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. 

Link to comment
Share on other sites

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

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