Jump to content

[solved][1.13.2] how to change item icons at run time?


Torojima

Recommended Posts

In 1.12.x there had been an minecraft vanilla class ItemMeshDefinition to define variable render icons based on whatever decision made in a method getModelLocation.

This could be registered in public void onRegisterModels(ModelRegistryEvent event) using ModelBakery.registerItemVariants and ModelLoader.setCustomMeshDefinition.

 

ItemMeshDefinition is no longer present in the Minecraft source and I don't think it's just a name change. I didn't find any respective class in the mc source.

 

So, my question is how to create items with variable icons in 1.13.2?

Does anybody has a pointer towards a respective doc or tutorial?

Edited by Torojima

running minecraft on Mac OS X - Sierra --- creating code since 1986 ... --- मेरा दिल भारतवासी है!

width=289 height=100http://www.arno-saxena.de/pictures/chococraft/banner_signature.png[/img]

Link to comment
Share on other sites

Thank you :D

the property override works perfectly :D

and after I recognised the models subfolder is called "item" instead of "items" like all the other subfolders, also the model json files have been found :D

running minecraft on Mac OS X - Sierra --- creating code since 1986 ... --- मेरा दिल भारतवासी है!

width=289 height=100http://www.arno-saxena.de/pictures/chococraft/banner_signature.png[/img]

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.

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.