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

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.

Does your error log have an error in it something like this

 

[sEVERE] [Minecraft-Client] Using missing texture, unable to load: testitemrendering:textures/items/Error.png

 

If so, pls post it?

 

-TGG

  • Author

i get a [sEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/items/MISSING_ICON_ITEM_5256_null.png

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

 

  • Author

So i tried adding

 

      public static ChocoDust chocoDust;

 

and im still not seeing a texture for this.

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.