1

1.5 item textures

meganukebmp 3/17/13 5:51 am
572
3/18/2013 1:21 pm
Someone help the modloader override proccess no longer works with 1.5 please help


package net.minecraft.src;
import java.util.Random;

public class mod_NAME extends BaseMod
{

public static final Item NAMEhere = new ItemNAME(2085).setItemName("NAME");

public void load()
{

NAMEhere.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/pic.png");
ModLoader.addName(NAMEhere, "Ingame -Name");

}
public String getVersion()
{
return "3.14159265";
}
}



What to do?
Posted by
meganukebmp
Level 9 : Apprentice Sus
94

  Have something to say?

JoinSign in

7

iChrille
03/18/2013 1:21 pm
Level 28 : Expert Prince
Hmm ths is weird.
1
meganukebmp
03/18/2013 1:19 pm
Level 9 : Apprentice Sus
Ok i figured it out in our ItemNAME.class we put this


public void func_94581_a(IconRegister iconRegister)
{
iconIndex = iconRegister.func_94245_a("TEXTURENAME");
}
1
Hawaii_Beach
03/18/2013 3:23 am
Level 56 : Grandmaster Programmer
ModLoader is the
1
meganukebmp
03/18/2013 3:18 am
Level 9 : Apprentice Sus
Thanks!
But i just figured out that i just need to rgister the texture alone instead of adding modloader override
1
Giraffestock
03/17/2013 9:19 pm
Level 52 : Grandmaster Narwhal
Personally, I prefer minecraft forge. Im not too sure about Modloader, but with forge you have to call a bit of an odd function to stich the texture together


public void func_94581_a(IconRegister iconRegister)
{
iconIndex = iconRegister.func_94245_a("ModName:ItemNameasPNG");
}


For this to work, it must be a zip mod.
If your using Minecraft Forge, take a look here: http://www.minecraftforge.net/wiki/Icons_and_Textures
1
sed11
03/17/2013 8:30 pm
Level 66 : High Grandmaster Hero
If you're trying to get to the items folder in the .jar, then you typed it wrong.
Minecraft's file location for textures in the items folder:

/textures/items/NameOfTexture.png
1
DARIENCK
03/17/2013 8:27 pm
Level 1 : New Miner
[/spoiler]
1

Welcome