Jump to content

Rendering Issues


Mystik

Recommended Posts

Hello, I'm rather new to minecraft modding, and in my quest to get started, I appeared to have hit an unfortunate block (no pun intended).

I've successfully set up my mod so that the item I've added is registered and in the creative tab. The problem is that the texture isn't being applied. My Json looks like this:

Spoiler

{
    "parent": "item/generated",
    "textures": {
        "layer0": "<MODID>:items/<ITEMNAME>"
    },
    "display": {
        "thirdperson": {
            "rotation": [ -90, 0, 0 ],
            "translation": [ 0, 1, -3 ],
            "scale": [ 0.55, 0.55, 0.55 ]
        },
        "firstperson": {
            "rotation": [ 0, -135, 25 ],
            "translation": [ 1.13, 3.2, 1.13 ],
            "scale": [ 0.68, 0.68, 0.68 ]
        }
    }
}

Obviously my MODID and item name are replaced here. My png texture is titled the item name.

the json is in the folder src/main/resources/assets/<MODID>/models/item and the texture is in the folder src/main/resources/assets/<MODID>/textures/items. I have tried all permutations of having an s on the end of item, so I don't think that's the issue, but I'm not confident.

In game, when I try to look at the item, it has the pink and black texture with "<MODID>:<ITEMNAME>#inventory" written on it (the quotation marks are added, and the <MODID> and <ITEMNAME> are replaced with the real values. However, the item name is in all lower case.

 

Any help is appreciated.

Link to comment
Share on other sites

Quote

[17:33:03] [Client thread/ERROR] [FML/]: Exception loading model for variant tut:itemtutitem#inventory for item "tut:itemtutitem", normal location exception: 
net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model tut:item/itemtutitem with loader VanillaLoader.INSTANCE, skipping
...
Caused by: java.io.FileNotFoundException: tut:models/item/itemtutitem.json

 

[17:33:03] [Client thread/ERROR] [FML/]: Exception loading model for variant tut:itemtutitem#inventory for item "tut:itemtutitem", blockstate location exception: 
net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model tut:itemtutitem#inventory with loader VariantLoader.INSTANCE, skipping
...
Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException

 

[17:33:03] [Client thread/ERROR] [FML/]: Exception loading model for variant tut:tutblock#inventory for item "tut:tutblock", normal location exception: 
net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model tut:item/tutblock with loader VanillaLoader.INSTANCE, skipping
...
Caused by: java.io.FileNotFoundException: tut:models/item/tutblock.json

 

[17:33:03] [Client thread/ERROR] [FML/]: Exception loading model for variant tut:tutblock#inventory for item "tut:tutblock", blockstate location exception: 
net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model tut:tutblock#inventory with loader VariantLoader.INSTANCE, skipping
...
Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException

Minecraft couldn't find an item model or blockstates variant for the Itemtut:itemtutitem and tut:tutblock.

 

Quote

[17:33:03] [Client thread/ERROR] [FML/]: Exception loading blockstate for the variant tut:tutblock#inventory: 
java.lang.Exception: Could not load model definition for variant tut:tutblock
...
Caused by: java.lang.RuntimeException: Encountered an exception when loading model definition of model tut:blockstates/tutblock.json
...
Caused by: java.io.FileNotFoundException: tut:blockstates/tutblock.json

Minecraft couldn't find a blockstates file for the Block tut:tutblock.

 

Are you sure your JSON files have the right names and paths? Have you set up your IDE project as per the documentation?

Edited by Choonster
  • Like 1

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

Aha! I got it. Thanks for interpreting the log for me Choonster. I figured it out.

 

The problem was that Forge was searching for itemtutitem.json, wheras I had named it ItemTutItem.json Apparently forge doesn't like capital letters, so when I made the json and my png all lower case it found it easily. Your help is much appreciated.

Link to comment
Share on other sites

6 hours ago, Mystik said:

Aha! I got it. Thanks for interpreting the log for me Choonster. I figured it out.

 

The problem was that Forge was searching for itemtutitem.json, wheras I had named it ItemTutItem.json Apparently forge doesn't like capital letters, so when I made the json and my png all lower case it found it easily. Your help is much appreciated.

 

Minecraft 1.11+ requires all asset file names to be lowercase.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

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.