Jump to content

Textures for Items?


TLHPoE
 Share

Recommended Posts

@Override
public void registerIcons(IconRegister reg){
	this.itemIcon = reg.registerIcon("yourmodid:texturename");
}

 

on your hard drive: mcp/src/minecraft/assets/yourmodid/items/texturename.png

or

mcp/src/minecraft/assets/yourmodid/blocks/texturename.png

yourmodid must be all lower case

Hydroflame is invalid

hydroflame is valid

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Link to comment
Share on other sites

@Override

  public void registerIcons(IconRegister reg)

    {

      this.itemIcon = reg.registerIcon("deathman12e3"+":" + this.getUnlocalizedName());

  }

 

no .png and you NEED ABSOLUTELLY 100% FOR SURE a colon ":" between your modid and your texture name

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Link to comment
Share on other sites

You can also put this at the end of your item constructors:

.func_111206_d("yourmodid:texturename")

Your textures MUST be in mcp/src/minecraft/yourmodid/textures/items/texturename.png

If you do not have those folders already, create them!

 

Link to comment
Share on other sites

I have this in my error log

 

2013-07-25 11:52:27 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: deathman12e3:textures/items/item.woodPaxel.png

 

 

Here's a little folder tree

 

src

>minecraft

>>deathman12e3

>>>textures

>>>>items

>>>>>woodPaxel.png

Kain

Link to comment
Share on other sites

deathman12e3:textures/items/item.woodPaxel<- says its looking for the file names: "item.woodPaxel"

 

src

>minecraft

>>deathman12e3

>>>textures

>>>>items

>>>>>woodPaxel.png <- there is no file named "item.woodPaxel"

 


deathman12e3:textures/items/woodPaxel

 

OR

 

 

src

>minecraft

>>deathman12e3

>>>textures

>>>>items

>>>>>item.woodPaxel.png

 

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

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
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.

 Share



×
×
  • Create New...

Important Information

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