Jump to content

[1.6.4] Textures not recognised


Ripxdeath

Recommended Posts

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

 

This is my base file

 

http://pastebin.com/TxPVNGUm

 

and my item file

 

http://pastebin.com/mcECrZ5v

 

 

I am on forge .964 so im using gradle

 

 

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

 

 

Thanks in advance for any help.

Link to comment
Share on other sites

Ah.

 

       public static Item ChocoDust;
     
       @EventHandler
       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;

@EventHandler
       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

 

http://www.minecraftforge.net/forum/index.php/topic,16784.msg84954.html#msg84954

 

-TGG

 

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.