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

I'm using 1.6.2 Forge, and I was wondering where I put my textures and what method I place into my Item class for the texture.

Kain

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

  • Author

Would this work too?

 

    @Override

public void registerIcons(IconRegister reg)

    {

   

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

 

}

Kain

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

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!

 

  • Author

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

deathman12e3:textures/items/item.woodPaxel.png

 

src

>minecraft

>>deathman12e3

>>>textures

>>>>items

>>>>>woodPaxel.png

 

you can figure this one out ?

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

-hydroflame, author of the forge revolution-

  • Author

I already tried renaming it to item.woodPaxel. I have no clue what to do, do I need items/item/woodPaxel?

Kain

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-

That is because the string is truncated before the ".". It is reserved for removing the file extension, don't use it.

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.