Jump to content

[1.16] How to change the texture of a model in Event


Recommended Posts

I'm looking for a way to replace the missing texture (black and purple texture when the model or texture generation fails) with another in one of the events (probably ModelBakedEvent). The resource pack method is not suitable because I only want to replace the block item in my mod with a new texture and leave the vanilla missing texture as it is. What I want to know is:

1. Which event should I use to replace the texture before the model is generated?
2. Which method of the event should be used to get the model that is about to be generated
3. How to check that the model belongs to your mod and that the missing texture is used
4. Finally, which method should be used to replace the texture of the model

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.