Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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.

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

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.

  • Author

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.

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.

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

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.