Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Minecraft Texture doesnt work


webdesigner01
 Share

Recommended Posts

Just now, webdesigner01 said:

Hello,

 

can anyone describe, why my code doesn't work? The image is not shown in the game.

I get the following log-details: [09:47:34] [main/ERROR] [FML]: Exception loading model for variant examplemod:fav#inventory for item "examplemod:fav", normal location exception: 

 

Thank you for answering.

main.zip

use github.

Link to comment
Share on other sites

Changing

ModelLoader.setCustomModelResourceLocation(item1, 0new ModelResourceLocation(new ResourceLocation("examplemod:fav"),"inventory"));

to

ModelLoader.setCustomModelResourceLocation(item1, 0 ,new ModelResourceLocation( item1.getRegistryName(), "inventory"));

might help but we need more info.

Please

1) create your own mod, rather than editing the ExampleMod provided with forge

2) use SubscribeEvents

3) post the full log

4) use GitHub

5) use GitHub

 

you can also try changing fav.json from

{
  "parent": "minecraft/generated",
  "textures": {
    "layer0": "examplemod:items/fav"
  }
}

to

{
    "parent": "item/generated",
    "textures": {
        "layer0": "examplemod:items/fav"
    }
}

 

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

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.

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

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.