Jump to content

[1.12] Itemmodel changes without Metadata


Recommended Posts

When using ModelLoader.setCustomModelResourceLocation it requires a Meta value, but if I want to create an item like the clock or compass with a huge amount of Textures for one item, how would I do it?


I've been reading through the compass and clock item classes but can't seem to get a grip of it. Is minecraft doing something else than using this.addPropertyOverride(new ResourceLocation("time"), new IItemPropertyGetter() to change the texture of the item based on a variable? I am calculating the variable based on an nbttag of the item that is to change textures of that helps.

Do i need to update the item constantly for it to change textures?

Link to comment
Share on other sites

5 hours ago, diesieben07 said:

No, that is fine. Alternatively, if you don't want property overrides, but actual different models, you can use ModelLoader.setCustomMeshDefinition instead of setCustomModelResourceLocation and call ModelBakery.registerItemVariants with every model you return from the mesh definition.


Please clarify what you mean by "update".

I mean send it some input to know that it changed and has to rerender or something in that manner.

Link to comment
Share on other sites

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.

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.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.