Jump to content

Tool & Armor textures not showing up in game, item textures do.


OwnAgePau

Recommended Posts

I keep trying to find the answer in the meanwhile but i just wanted to know if its that its a known bug or that it is fixed in the next update. and how can i easily update?

 

My armor and tools show up in creative and in crafting recipes as a default images. i used a sepperate immage file for my blocks and 1 for all of my items, the normal items like gems and stuff like that show up normally but my armor and tools show up as the deffault picture corresponding to the index that i gave them (according to my file), for example i gave my BronzeSword the

 

static EnumToolMaterial toolBRONZE = EnumHelper.addToolMaterial("BRONZE",2, 180, 5.8F, 2, 12);

public static final Item BronzeSword = (new ItemPickaxe(1052,toolBRONZE).setIconIndex(119).setItemName("BronzeSword"));

and it shows up as an empty sprite... (probably because in default terrain.png index 119 isnt anything)

Link to comment
Share on other sites

ah jeah sorry i forgot to add it, here it is:

 

in the file i have this :

 

 

package net.minecraft.src;

 

import net.minecraftforge.client.*;

 

public class ItemBronzeSword extends Item

{

protected ItemBronzeSword(int i)

{

super(i);

}

    public String getTextureFile()

    {

        return "/mod_Ores/gui/ItemsMe.png";

    }

}

 

 

 

And in the public void i have:

 

MinecraftForgeClient.preloadTexture("/mod_Ores/Blocks.png");

MinecraftForgeClient.preloadTexture("/mod_Ores/gui/ItemsMe.png");

 

Link to comment
Share on other sites

well i tried doing it like "ItemSword" and such but that doesnt work aswell.

 

This error shows up when joining the game (the map not the client).

 

 

java.io.IOException: Server returned HTTP response code: 503 for URL: http://skins.minecraft.net/MinecraftCloaks/Player540.png

2012-08-29 16:36:23 [iNFO] [sTDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

2012-08-29 16:36:23 [iNFO] [sTDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

2012-08-29 16:36:23 [iNFO] [sTDERR] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

2012-08-29 16:36:23 [iNFO] [sTDERR] at java.lang.reflect.Constructor.newInstance(Unknown Source)

2012-08-29 16:36:23 [iNFO] [sTDERR] at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)

2012-08-29 16:36:23 [iNFO] [sTDERR] at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)

2012-08-29 16:36:23 [iNFO] [sTDERR] at java.security.AccessController.doPrivileged(Native Method)

2012-08-29 16:36:23 [iNFO] [sTDERR] at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)

2012-08-29 16:36:23 [iNFO] [sTDERR] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)

2012-08-29 16:36:23 [iNFO] [sTDERR] at net.minecraft.src.ThreadDownloadImage.run(ThreadDownloadImage.java:48)

2012-08-29 16:36:23 [iNFO] [sTDERR] Caused by: java.io.IOException: Server returned HTTP response code: 503 for URL: http://skins.minecraft.net/MinecraftCloaks/Player540.png

2012-08-29 16:36:23 [iNFO] [sTDERR] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)

2012-08-29 16:36:23 [iNFO] [sTDERR] at java.net.HttpURLConnection.getResponseCode(Unknown Source)

2012-08-29 16:36:23 [iNFO] [sTDERR] at net.minecraft.src.ThreadDownloadImage.run(ThreadDownloadImage.java:37)

 

 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

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