Hi
For item textures:
in the item class, use
@Override
public void registerIcons(IconRegister r)
{
this.itemIcon = r.registerIcons("yourModName:pictureName");
}
And for block textures:
in the block class, use
@Override
public void registerIcons(IconRegister r)
{
this.itemBlock = r.registerIcons("yourModName:pictureName");
}
You also need to have your textures in an assets folder, which goes in the src folder. Inside the assets folder, make a textures folder, inside that, make a folder called items and a folder called blocks. Item textures go in the items folder and block textures go in the blocks folder.
For example, the directory for an item texture, starting from the src folder:
src/minecraft/assets/yourModName/textures/items/itemName
Its kind of confusing, so if you need more clarification Ill try my best to help.
If this helped you, it would be cool if you subscribed to me.
Good luck,
Magicshancake