Posted April 21, 20187 yr 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
April 21, 20187 yr 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.
April 23, 20187 yr Changing ModelLoader.setCustomModelResourceLocation(item1, 0, new 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 Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.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)
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.