Posted October 8, 20213 yr 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 October 11, 20213 yr by DavidQF555
October 8, 20213 yr 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.
October 8, 20213 yr 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.
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.