Jump to content

[1.6.4] Textures not recognised


Recommended Posts

When i test in eclipse my texture isn't showing up on the item, anyone know why?


This is my base file




and my item file





I am on forge .964 so im using gradle



I have my texture located at B:\MinecraftModding\forge-1.6.4-\src\main\resources\assets\generic\textures\items



Thanks in advance for any help.

Link to comment
Share on other sites



       public static Item ChocoDust;
       public void load(FMLInitializationEvent event)
           ChocoDust = (new ItemFood(5000, 3, 3, false));

           LanguageRegistry.addName(ChocoDust, "Chocolate Dust");


The problem is that you never create an instance of your ChocoDust class.  I'm guessing that you're just starting out Java?  Your code should look something like this


public static ChocoDust chocoDust;

       public void load(FMLInitializationEvent event)
           chocoDust = new ChocoDust(xxx);

           LanguageRegistry.addName(chocoDust , "Chocolate Dust");

and your ChocoDust class should probably extend ItemFood, not Item.  (I haven't tried to compile that code there so it might not be exactly right)


Here's a link you might find useful if you're just starting out with Java






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.