Jump to content

[1.8.9] Mod Textures Not Loading


Recommended Posts

I am working on a mod, with nw blocks and items; but wehn I loaded it in minecraft to see if is working so far, the texture for the creative tab, new item, and new block did not load, nor did the en_US.lang file. I triple checked the coding and file names, and everything seemed fine; but it still would not load.  :-[


Here is a github to the files so you can further help me -----> ?

Link to comment
Share on other sites

Don't use ModelMesher.  Use ModelLoader.setCustomResourceLocation (during pre-init)


Or better yet, make up a class like this one:




Which will handle all the different ways you might wish to register a block or item.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.


Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.


DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites


import net.minecraftforge.client.model.ModelLoader;
    ModelResourceLocation res = new ModelResourceLocation (i.getRegistryName (), "inventory");
    ModelLoader.setCustomModelResourceLocation (i, 0, res);


Google setCustomModelResourceLocation along with keywords like Minecraft and Forge. You should see plenty of earlier discussion.


When all resources are missing (even the lang file), it's probably because of some little error in directory structure or a string value in code. There should be some warnings in the log file (but maybe not in console). Hunt down the log file on disk. If you can't see any failures to open resource files, then give us a link or else post it here (inside tags).

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

Link to comment
Share on other sites

All the above + make sure you got the model json for items and blocks properly.


For 1.10.2 is like this. I'm sure 1.8.9 would be similar.


In preInit


the item is registered as setUnlocalizedName("ingotCopper").setRegistryName("ingotCopper")


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


my json


    "parent": "item/generated",
    "textures": {
        "layer0": "modid:items/ingotCopper"


And texture is under  src/main/resources/assets/modid/textures/items/ingotCopper.png


Disclaimer:  I been told to keep my opinions to myself, to shut up and that I am spreading lies and misinformation or even that my methods are unorthodox and or too irregular. Here are my suggestions take it or leave it.

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.