Jump to content

Custom Items.png not displaying


Recommended Posts

I started having trouble yesterday with my Armor items not showing their loaded textures.

This is a section of the code i have used in the "mod_XXXX.java" file (I have received no errors.)

 

static EnumArmorMaterial armorSATHUS = EnumHelper.addArmorMaterial("SATHUS", 12, new int[] {2, 5, 4, 1}, 20);
public static final Item helmetSathus = (new SathusItemArmor(260, armorSATHUS, 5, 0)).setIconCoord(32, 32).setItemName("helmetSathus");
public static final Item plateSathus = (new SathusItemArmor(261, armorSATHUS, 5, 1)).setIconCoord(1, 2).setItemName("chestplateSathus");
public static final Item legsSathus = (new SathusItemArmor(262, armorSATHUS, 5, 2)).setIconCoord(1, 3).setItemName("leggingsSathus");
public static final Item bootsSathus = (new SathusItemArmor(263, armorSATHUS, 5, 3)).setIconCoord(1, 4).setItemName("bootsSathus"); 

 

Am i setting the .iconCoord correctly?

Also i have called .preloadtexture in the load() section of the "mod_XXXX.java" file.

 

        MinecraftForgeClient.preloadTexture("AbsolutArmor.png");

 

And within my Armor's Class file i have inserted :-

 

        public String getTextureFile()
        {
                return "AbsolutArmour.png";
        }

 

If any more information or code is needed to help solve this problem, let me know.

Thank-you in Advance.

Link to comment
Share on other sites

I shall include my full mod_XXXX.java file, as after adding the '/' to my image path, it affects other image files.

 

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

import net.minecraft.src.forge.*;

public class mod_AbsolutOres extends BaseMod
{
	//block
        public static final Block blockSathusOre = new blockSathusOre(253, 4).setHardness(3F).setResistance(5F).setStepSound(Block.soundStoneFootstep).setBlockName("SathusOre");
        public static final Block blockIxasOre = new blockIxasOre(252, 6).setHardness(3F).setResistance(5F).setStepSound(Block.soundStoneFootstep).setBlockName("IxasOre");
        
        public static final Block blockDracasOre = new blockDracasOre(251, 11).setHardness(3F).setResistance(5F).setStepSound(Block.soundStoneFootstep).setBlockName("DracasOre");
        public static final Block blockToxusOre = new blockToxusOre(250, 10).setHardness(3F).setResistance(5F).setStepSound(Block.soundStoneFootstep).setBlockName("ToxusOre");
        
        //item
        public static final Item itemSathusIngot = new itemSathusIngot(256).setIconIndex(4).setItemName("SathusIngot");
        public static final Item itemIxasIngot = new itemIxasIngot(257).setIconIndex(6).setItemName("IxasIngot");
        
        public static final Item itemDracasIngot = new itemDracasIngot(258).setIconIndex(11).setItemName("DracasIngot");
        public static final Item itemToxusIngot = new itemToxusIngot(259).setIconIndex(10).setItemName("ToxusIngot");
        
        static EnumArmorMaterial armorSATHUS = EnumHelper.addArmorMaterial("SATHUS", 12, new int[] {2, 5, 4, 1}, 20);
        public static final Item helmetSathus = (new SathusItemArmor(260, armorSATHUS, 5, 0)).setIconCoord(32, 32).setItemName("helmetSathus");
        public static final Item plateSathus = (new SathusItemArmor(261, armorSATHUS, 5, 1)).setIconCoord(1, 2).setItemName("chestplateSathus");
        public static final Item legsSathus = (new SathusItemArmor(262, armorSATHUS, 5, 2)).setIconCoord(1, 3).setItemName("leggingsSathus");
        public static final Item bootsSathus = (new SathusItemArmor(263, armorSATHUS, 5, 3)).setIconCoord(1, 4).setItemName("bootsSathus");
        
        static EnumArmorMaterial armorIXAS = EnumHelper.addArmorMaterial("IXAS", 17, new int[] {2, 6, 5, 2}, 30);
        public static final Item helmetIxas = (new IxasItemArmor(264, armorIXAS, 5, 0)).setIconCoord(1, 6).setItemName("helmetIxas");
        public static final Item plateIxas = (new IxasItemArmor(265, armorIXAS, 5, 1)).setIconCoord(17, 7).setItemName("chestplateIxas");
        public static final Item legsIxas = (new IxasItemArmor(266, armorIXAS, 5, 2)).setIconCoord(33, .setItemName("leggingsIxas");
        public static final Item bootsIxas = (new IxasItemArmor(267, armorIXAS, 5, 3)).setIconCoord(48, 9).setItemName("bootsIxas");
        
        static EnumArmorMaterial armorDRACAS = EnumHelper.addArmorMaterial("DRACAS", 26, new int[] {2, 7, 5, 2}, 40);
        public static final Item helmetDracas = (new DracasItemArmor(268, armorDRACAS, 5, 0)).setIconCoord(2, 6).setItemName("helmetDracas");
        public static final Item plateDracas = (new DracasItemArmor(269, armorDRACAS, 5, 1)).setIconCoord(18, 7).setItemName("chestplateDracas");
        public static final Item legsDracas = (new DracasItemArmor(270, armorDRACAS, 5, 2)).setIconCoord(34, .setItemName("leggingsDracas");
        public static final Item bootsDracas = (new DracasItemArmor(271, armorDRACAS, 5, 3)).setIconCoord(49, 9).setItemName("bootsDracas");
        
        static EnumArmorMaterial armorTOXUS = EnumHelper.addArmorMaterial("TOXUS", 26, new int[] {2, 7, 5, 2}, 40);
        public static final Item helmetToxus = (new ToxusItemArmor(272, armorTOXUS, 5, 0)).setIconCoord(3, 6).setItemName("helmetToxus");
        public static final Item plateToxus = (new ToxusItemArmor(273, armorTOXUS, 5, 1)).setIconCoord(19, 7).setItemName("chestplateToxus");
        public static final Item legsToxus = (new ToxusItemArmor(274, armorTOXUS, 5, 2)).setIconCoord(35, .setItemName("leggingsToxus");
        public static final Item bootsToxus = (new ToxusItemArmor(275, armorTOXUS, 5, 3)).setIconCoord(50, 9).setItemName("bootsToxus");
        
        public mod_AbsolutOres()
        {
                
        }

        public void load()
        {
        	//texture preload
            MinecraftForgeClient.preloadTexture("AbsolutOresTerrain.png"); //works without the slash
            MinecraftForgeClient.preloadTexture("AbsolutOresItems.png"); //works without the slash
            MinecraftForgeClient.preloadTexture("AbsolutArmor.png"); //not working
            //register
            ModLoader.registerBlock(blockSathusOre);
            ModLoader.registerBlock(blockIxasOre);
            ModLoader.registerBlock(blockDracasOre);
            ModLoader.registerBlock(blockToxusOre);
            //name block
            ModLoader.addName(blockSathusOre, "Sathus Ore");            
            ModLoader.addName(blockIxasOre, "Ixas Ore");
            ModLoader.addName(blockDracasOre, "Dracas Ore");
            ModLoader.addName(blockToxusOre, "Toxus Ore");           
            //name item
            ModLoader.addName(itemSathusIngot, "Sathus Ingot");            
            ModLoader.addName(itemIxasIngot, "Ixus Ingot");
            ModLoader.addName(itemDracasIngot, "Dracas Ingot");
            ModLoader.addName(itemToxusIngot, "Toxus Ingot");
            //Sathus Armour Naming
            ModLoader.addName(helmetSathus, "Sathus Helmet");            
            ModLoader.addName(plateSathus, "Sathus Plate");
            ModLoader.addName(legsSathus, "Sathus Legs");
            ModLoader.addName(bootsSathus, "Sathus Boots");
            //Ixas Armour Naming
            ModLoader.addName(helmetIxas, "Ixas Helmet");            
            ModLoader.addName(plateIxas, "Ixas Plate");
            ModLoader.addName(legsIxas, "Ixas Legs");
            ModLoader.addName(bootsIxas, "Ixas Boots");
            //Dracas Armour Naming
            ModLoader.addName(helmetDracas, "Dracas Helmet");            
            ModLoader.addName(plateDracas, "Dracas Plate");
            ModLoader.addName(legsDracas, "Dracas Legs");
            ModLoader.addName(bootsDracas, "Dracas Boots");
            //Toxus Armour Naming
            ModLoader.addName(helmetToxus, "Toxus Helmet");            
            ModLoader.addName(plateToxus, "Toxus Plate");
            ModLoader.addName(legsToxus, "Toxus Legs");
            ModLoader.addName(bootsToxus, "Toxus Boots");
            //smelting recipe
            ModLoader.addSmelting(blockSathusOre.blockID, new ItemStack(itemSathusIngot));   
            ModLoader.addSmelting(blockIxasOre.blockID, new ItemStack(itemIxasIngot));
            ModLoader.addSmelting(blockDracasOre.blockID, new ItemStack(itemDracasIngot));
            ModLoader.addSmelting(blockToxusOre.blockID, new ItemStack(itemToxusIngot));
            
        }
        //block generate
        public void generateSurface(World world, Random rand, int chunkX, int chunkZ)
        {
                        for(int l = 0; l < 10; l++) //10 = amount of attempted veins in a chunk
                        {
                                int i1 = chunkX + rand.nextInt(16); //part of chunk 
                                int j1 = rand.nextInt(128); // spawns up to Y coordinate from floor 0
                                int k1 = chunkZ + rand.nextInt(16); //part of chunk 
                                (new WorldGenMinable(blockSathusOre.blockID, 6)).generate(world, rand, i1, j1, k1); // Block to generate
                                (new WorldGenMinable(blockIxasOre.blockID, 5)).generate(world, rand, i1, j1, k1); // Block to generate
                                (new WorldGenMinable(blockDracasOre.blockID, 4)).generate(world, rand, i1, j1, k1); // Block to generate
                                (new WorldGenMinable(blockToxusOre.blockID, 3)).generate(world, rand, i1, j1, k1); // Block to generate
                        }
        }
        
        public String getVersion()
        {
                return "AbsolutOres v1.0 for 1.2.5";
        }
}

 

Link to comment
Share on other sites

Just to note, it looks in the classpath for the file, when you use / it looks in the root of you mods zip folder.

Without the / it looks relative to the class that's invoking it, which is the RenderEngine(?) if i recall correctly.

So make sure you get your paths correctly.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Link to comment
Share on other sites

Very strange this time, so i have attached an image as well as my main 'mod_XXXX.java' & 'itemXXXXIngot.java'

 

'mod_XXXX.java'

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

public class mod_AbsolutOres extends BaseMod
{
	//block
        public static final Block blockSathusOre = new blockSathusOre(253, 4).setHardness(3F).setResistance(5F).setStepSound(Block.soundStoneFootstep).setBlockName("SathusOre");
        public static final Block blockIxasOre = new blockIxasOre(252, 6).setHardness(3F).setResistance(5F).setStepSound(Block.soundStoneFootstep).setBlockName("IxasOre");
        public static final Block blockDracasOre = new blockDracasOre(251, 11).setHardness(3F).setResistance(5F).setStepSound(Block.soundStoneFootstep).setBlockName("DracasOre");
        public static final Block blockToxusOre = new blockToxusOre(250, 10).setHardness(3F).setResistance(5F).setStepSound(Block.soundStoneFootstep).setBlockName("ToxusOre");
        
        //itemIngot
        public static final Item itemSathusIngot = new itemSathusIngot(256).setIconCoord(4, 0).setItemName("SathusIngot");
        public static final Item itemIxasIngot = new itemIxasIngot(257).setIconCoord(6, 0).setItemName("IxasIngot");
        public static final Item itemDracasIngot = new itemDracasIngot(258).setIconCoord(11, 0).setItemName("DracasIngot");
        public static final Item itemToxusIngot = new itemToxusIngot(259).setIconCoord(10, 0).setItemName("ToxusIngot");
        //Sathus Armor
        static EnumArmorMaterial armorSATHUS = EnumHelper.addArmorMaterial("SATHUS", 12, new int[] {2, 5, 4, 1}, 20);
        public static final Item helmetSathus = (new SathusItemArmor(260, armorSATHUS, 5, 0)).setIconCoord(12, 0).setItemName("helmetSathus");
        public static final Item plateSathus = (new SathusItemArmor(261, armorSATHUS, 5, 1)).setIconCoord(28, 0).setItemName("chestplateSathus");
        public static final Item legsSathus = (new SathusItemArmor(262, armorSATHUS, 5, 2)).setIconCoord(44, 0).setItemName("leggingsSathus");
        public static final Item bootsSathus = (new SathusItemArmor(263, armorSATHUS, 5, 3)).setIconCoord(60, 0).setItemName("bootsSathus");
        //Ixas Armor
        static EnumArmorMaterial armorIXAS = EnumHelper.addArmorMaterial("IXAS", 17, new int[] {2, 6, 5, 2}, 30);
        public static final Item helmetIxas = (new IxasItemArmor(264, armorIXAS, 5, 0)).setIconCoord(13, 0).setItemName("helmetIxas");
        public static final Item plateIxas = (new IxasItemArmor(265, armorIXAS, 5, 1)).setIconCoord(29, 0).setItemName("chestplateIxas");
        public static final Item legsIxas = (new IxasItemArmor(266, armorIXAS, 5, 2)).setIconCoord(45, 0).setItemName("leggingsIxas");
        public static final Item bootsIxas = (new IxasItemArmor(267, armorIXAS, 5, 3)).setIconCoord(61, 0).setItemName("bootsIxas");
        //Dracas Armor
        static EnumArmorMaterial armorDRACAS = EnumHelper.addArmorMaterial("DRACAS", 26, new int[] {2, 7, 5, 2}, 40);
        public static final Item helmetDracas = (new DracasItemArmor(268, armorDRACAS, 5, 0)).setIconCoord(15, 0).setItemName("helmetDracas");
        public static final Item plateDracas = (new DracasItemArmor(269, armorDRACAS, 5, 1)).setIconCoord(31, 0).setItemName("chestplateDracas");
        public static final Item legsDracas = (new DracasItemArmor(270, armorDRACAS, 5, 2)).setIconCoord(47, 0).setItemName("leggingsDracas");
        public static final Item bootsDracas = (new DracasItemArmor(271, armorDRACAS, 5, 3)).setIconCoord(63, 0).setItemName("bootsDracas");
        //Toxus Armor
        static EnumArmorMaterial armorTOXUS = EnumHelper.addArmorMaterial("TOXUS", 26, new int[] {2, 7, 5, 2}, 60);
        public static final Item helmetToxus = (new ToxusItemArmor(272, armorTOXUS, 5, 0)).setIconCoord(14, 0).setItemName("helmetToxus");
        public static final Item plateToxus = (new ToxusItemArmor(273, armorTOXUS, 5, 1)).setIconCoord(30, 0).setItemName("chestplateToxus");
        public static final Item legsToxus = (new ToxusItemArmor(274, armorTOXUS, 5, 2)).setIconCoord(46, 0).setItemName("leggingsToxus");
        public static final Item bootsToxus = (new ToxusItemArmor(275, armorTOXUS, 5, 3)).setIconCoord(62, 0).setItemName("bootsToxus");
        //Sathus Tools
        static EnumToolMaterial toolSATHUS = EnumHelper.addToolMaterial("SATHUS", 2, 180, 5F, 2, 20);
        public static final Item shovelSathus = (new SathusItemSpade(276, AbsolutEnumToolMaterial.SATHUS)).setIconIndex(92).setItemName("shovelSathus");
        public static final Item pickaxeSathus = (new SathusItemPickaxe(277 , AbsolutEnumToolMaterial.SATHUS)).setIconIndex(108).setItemName("pickaxeSathus");
        public static final Item axeSathus = (new SathusItemAxe(278 , AbsolutEnumToolMaterial.SATHUS)).setIconIndex(124).setItemName("hatchetSathus");
        public static final Item swordSathus = (new SathusItemSword(279 , AbsolutEnumToolMaterial.SATHUS)).setIconIndex(76).setItemName("swordSathus");
        public static final Item hoeSathus = (new SathusItemHoe(280 , AbsolutEnumToolMaterial.SATHUS)).setIconIndex(140).setItemName("hoeSathus");
        //Ixas Tools
        static EnumToolMaterial toolIXAS = EnumHelper.addToolMaterial("IXAS", 2, 375, 6F, 2, 30);
        public static final Item shovelIxas = (new IxasItemSpade(281, AbsolutEnumToolMaterial.IXAS)).setIconIndex(93).setItemName("shovelIxas");
        public static final Item pickaxeIxas = (new IxasItemPickaxe(282 , AbsolutEnumToolMaterial.IXAS)).setIconIndex(109).setItemName("pickaxeIxas");
        public static final Item axeIxas = (new IxasItemAxe(283 , AbsolutEnumToolMaterial.IXAS)).setIconIndex(125).setItemName("hatchetIxas");
        public static final Item swordIxas = (new IxassItemSword(284 , AbsolutEnumToolMaterial.IXAS)).setIconIndex(77).setItemName("swordIxas");
        public static final Item hoeIxas = (new IxassItemHoe(285 , AbsolutEnumToolMaterial.IXAS)).setIconIndex(141).setItemName("hoeIxas");
        //Dracas Tools
        static EnumToolMaterial toolDRACAS = EnumHelper.addToolMaterial("DRACAS", 3, 900, 7F, 3, 40);
        public static final Item shovelDracas = (new DracasItemSpade(286, AbsolutEnumToolMaterial.DRACAS)).setIconIndex(95).setItemName("shovelDracas");
        public static final Item pickaxeDracas = (new DracasItemPickaxe(287 , AbsolutEnumToolMaterial.DRACAS)).setIconIndex(111).setItemName("pickaxeDracas");
        public static final Item axeDracas = (new DracasItemAxe(288 , AbsolutEnumToolMaterial.DRACAS)).setIconIndex(127).setItemName("hatchetDracas");
        public static final Item swordDracas = (new DracasItemSword(289 , AbsolutEnumToolMaterial.DRACAS)).setIconIndex(79).setItemName("swordDracas");
        public static final Item hoeDracas = (new DracasItemHoe(290 , AbsolutEnumToolMaterial.DRACAS)).setIconIndex(143).setItemName("hoeDracas");
        //Toxus Tools
        static EnumToolMaterial toolTOXUS = EnumHelper.addToolMaterial("TOXUS", 3, 2000, 9F, 3, 50);
        public static final Item shovelToxus = (new ToxusItemSpade(291, AbsolutEnumToolMaterial.TOXUS)).setIconIndex(94).setItemName("shovelToxus");
        public static final Item pickaxeToxus = (new ToxusItemPickaxe(292 , AbsolutEnumToolMaterial.TOXUS)).setIconIndex(110).setItemName("pickaxeToxus");
        public static final Item axeToxus = (new ToxusItemAxe(293 , AbsolutEnumToolMaterial.TOXUS)).setIconIndex(126).setItemName("hatchetToxus");
        public static final Item swordToxus = (new ToxusItemSword(294 , AbsolutEnumToolMaterial.TOXUS)).setIconIndex(78).setItemName("swordToxus");
        public static final Item hoeToxus = (new ToxusItemHoe(295 , AbsolutEnumToolMaterial.TOXUS)).setIconIndex(142).setItemName("hoeToxus");
        
        public mod_AbsolutOres()
        {
                
        }

        public void load()
        {
        	//texture preload
            MinecraftForgeClient.preloadTexture("/AbsolutOresTerrain.png");
            MinecraftForgeClient.preloadTexture("/AbsolutOresItems.png");
            //register
            ModLoader.registerBlock(blockSathusOre);
            ModLoader.registerBlock(blockIxasOre);
            ModLoader.registerBlock(blockDracasOre);
            ModLoader.registerBlock(blockToxusOre);
            //name block
            ModLoader.addName(blockSathusOre, "Sathus Ore");            
            ModLoader.addName(blockIxasOre, "Ixas Ore");
            ModLoader.addName(blockDracasOre, "Dracas Ore");
            ModLoader.addName(blockToxusOre, "Toxus Ore");           
            //name item
            ModLoader.addName(itemSathusIngot, "Sathus Ingot");            
            ModLoader.addName(itemIxasIngot, "Ixus Ingot");
            ModLoader.addName(itemDracasIngot, "Dracas Ingot");
            ModLoader.addName(itemToxusIngot, "Toxus Ingot");
            //Sathus Armour Naming
            ModLoader.addName(helmetSathus, "Sathus Helmet");            
            ModLoader.addName(plateSathus, "Sathus Plate");
            ModLoader.addName(legsSathus, "Sathus Legs");
            ModLoader.addName(bootsSathus, "Sathus Boots");
            ModLoader.addName(shovelSathus, "Sathus Shovel");
            ModLoader.addName(pickaxeSathus, "Sathus Pickaxe");
            ModLoader.addName(axeSathus, "Sathus Axe");
            ModLoader.addName(swordSathus, "Sathus Sword");
            ModLoader.addName(hoeSathus, "Sathus Hoe");
            //Ixas Armour Naming
            ModLoader.addName(helmetIxas, "Ixas Helmet");            
            ModLoader.addName(plateIxas, "Ixas Plate");
            ModLoader.addName(legsIxas, "Ixas Legs");
            ModLoader.addName(bootsIxas, "Ixas Boots");
            ModLoader.addName(shovelIxas, "Ixas Shovel");
            ModLoader.addName(pickaxeIxas, "Ixas Pickaxe");
            ModLoader.addName(axeIxas, "Ixas Axe");
            ModLoader.addName(swordIxas, "Ixas Sword");
            ModLoader.addName(hoeIxas, "Ixas Hoe");
            //Dracas Armour Naming
            ModLoader.addName(helmetDracas, "Dracas Helmet");            
            ModLoader.addName(plateDracas, "Dracas Plate");
            ModLoader.addName(legsDracas, "Dracas Legs");
            ModLoader.addName(bootsDracas, "Dracas Boots");
            ModLoader.addName(shovelDracas, "Dracas Shovel");
            ModLoader.addName(pickaxeDracas, "Dracas Pickaxe");
            ModLoader.addName(axeDracas, "Dracas Axe");
            ModLoader.addName(swordDracas, "Dracas Sword");
            ModLoader.addName(hoeDracas, "Dracas Hoe");
            //Toxus Armour Naming
            ModLoader.addName(helmetToxus, "Toxus Helmet");            
            ModLoader.addName(plateToxus, "Toxus Plate");
            ModLoader.addName(legsToxus, "Toxus Legs");
            ModLoader.addName(bootsToxus, "Toxus Boots");
            ModLoader.addName(shovelToxus, "Toxus Shovel");
            ModLoader.addName(pickaxeToxus, "Toxus Pickaxe");
            ModLoader.addName(axeToxus, "Toxus Axe");
            ModLoader.addName(swordToxus, "Toxus Sword");
            ModLoader.addName(hoeToxus, "Toxus Hoe");
            //smelting recipe
            ModLoader.addSmelting(blockSathusOre.blockID, new ItemStack(itemSathusIngot));   
            ModLoader.addSmelting(blockIxasOre.blockID, new ItemStack(itemIxasIngot));
            ModLoader.addSmelting(blockDracasOre.blockID, new ItemStack(itemDracasIngot));
            ModLoader.addSmelting(blockToxusOre.blockID, new ItemStack(itemToxusIngot));
            //Sathus Armor Recipe
            ModLoader.addRecipe(new ItemStack(helmetSathus, 1), new Object[] {"XXX", "X X", "   ", Character.valueOf('X'), itemSathusIngot});
            ModLoader.addRecipe(new ItemStack(plateSathus, 1), new Object[] {"X X", "XXX", "XXX", Character.valueOf('X'), itemSathusIngot});
            ModLoader.addRecipe(new ItemStack(legsSathus, 1), new Object[] {"XXX", "X X", "X X", Character.valueOf('X'), itemSathusIngot});
            ModLoader.addRecipe(new ItemStack(bootsSathus, 1), new Object[] {"   ", "X X", "X X", Character.valueOf('X'), itemSathusIngot});
            //Ixas Armor Recipe
            ModLoader.addRecipe(new ItemStack(helmetIxas, 1), new Object[] {"XXX", "X X", "   ", Character.valueOf('X'), itemIxasIngot});
            ModLoader.addRecipe(new ItemStack(plateIxas, 1), new Object[] {"X X", "XXX", "XXX", Character.valueOf('X'), itemIxasIngot});
            ModLoader.addRecipe(new ItemStack(legsIxas, 1), new Object[] {"XXX", "X X", "X X", Character.valueOf('X'), itemIxasIngot});
            ModLoader.addRecipe(new ItemStack(bootsIxas, 1), new Object[] {"   ", "X X", "X X", Character.valueOf('X'), itemIxasIngot});
            //Dracas Armor Recipe
            ModLoader.addRecipe(new ItemStack(helmetDracas, 1), new Object[] {"XXX", "X X", "   ", Character.valueOf('X'), itemDracasIngot});
            ModLoader.addRecipe(new ItemStack(plateDracas, 1), new Object[] {"X X", "XXX", "XXX", Character.valueOf('X'), itemDracasIngot});
            ModLoader.addRecipe(new ItemStack(legsDracas, 1), new Object[] {"XXX", "X X", "X X", Character.valueOf('X'), itemDracasIngot});
            ModLoader.addRecipe(new ItemStack(bootsDracas, 1), new Object[] {"   ", "X X", "X X", Character.valueOf('X'), itemDracasIngot});
            //Toxus Armor Recipe
            ModLoader.addRecipe(new ItemStack(helmetToxus, 1), new Object[] {"XXX", "X X", "   ", Character.valueOf('X'), itemToxusIngot});
            ModLoader.addRecipe(new ItemStack(plateToxus, 1), new Object[] {"X X", "XXX", "XXX", Character.valueOf('X'), itemToxusIngot});
            ModLoader.addRecipe(new ItemStack(legsToxus, 1), new Object[] {"XXX", "X X", "X X", Character.valueOf('X'), itemToxusIngot});
            ModLoader.addRecipe(new ItemStack(bootsToxus, 1), new Object[] {"   ", "X X", "X X", Character.valueOf('X'), itemToxusIngot});
            //Sathus Tools Recipe
            ModLoader.addRecipe(new ItemStack(shovelSathus, 1), new Object[] {" X ", " S ", " S ", Character.valueOf('X'), itemSathusIngot, Character.valueOf('S'), Item.stick});
            ModLoader.addRecipe(new ItemStack(pickaxeSathus, 1), new Object[] {"XXX", " S ", " S ", Character.valueOf('X'), itemSathusIngot, Character.valueOf('S'), Item.stick});
            ModLoader.addRecipe(new ItemStack(axeSathus, 1), new Object[] {"XX ", "XS ", " S ", Character.valueOf('X'), itemSathusIngot, Character.valueOf('S'), Item.stick});
            ModLoader.addRecipe(new ItemStack(axeSathus, 1), new Object[] {" XX", " SX", " S ", Character.valueOf('X'), itemSathusIngot, Character.valueOf('S'), Item.stick});
            ModLoader.addRecipe(new ItemStack(swordSathus, 1), new Object[] {" X ", " X ", " S ", Character.valueOf('X'), itemSathusIngot, Character.valueOf('S'), Item.stick});
            ModLoader.addRecipe(new ItemStack(hoeSathus, 1), new Object[] {"XX ", " S ", " S ", Character.valueOf('X'), itemSathusIngot, Character.valueOf('S'), Item.stick});     
            ModLoader.addRecipe(new ItemStack(hoeSathus, 1), new Object[] {" XX", " S ", " S ", Character.valueOf('X'), itemSathusIngot, Character.valueOf('S'), Item.stick});
            //Ixas Tools Recipe
            ModLoader.addRecipe(new ItemStack(shovelIxas, 1), new Object[] {" X ", " S ", " S ", Character.valueOf('X'), itemIxasIngot, Character.valueOf('S'), Item.stick});
            ModLoader.addRecipe(new ItemStack(pickaxeIxas, 1), new Object[] {"XXX", " S ", " S ", Character.valueOf('X'), itemIxasIngot, Character.valueOf('S'), Item.stick});
            ModLoader.addRecipe(new ItemStack(axeIxas, 1), new Object[] {"XX ", "XS ", " S ", Character.valueOf('X'), itemIxasIngot, Character.valueOf('S'), Item.stick});
            ModLoader.addRecipe(new ItemStack(axeIxas, 1), new Object[] {" XX", " SX", " S ", Character.valueOf('X'), itemIxasIngot, Character.valueOf('S'), Item.stick});
            ModLoader.addRecipe(new ItemStack(swordIxas, 1), new Object[] {" X ", " X ", " S ", Character.valueOf('X'), itemIxasIngot, Character.valueOf('S'), Item.stick});
            ModLoader.addRecipe(new ItemStack(hoeIxas, 1), new Object[] {"XX ", " S ", " S ", Character.valueOf('X'), itemIxasIngot, Character.valueOf('S'), Item.stick});     
            ModLoader.addRecipe(new ItemStack(hoeIxas, 1), new Object[] {" XX", " S ", " S ", Character.valueOf('X'), itemIxasIngot, Character.valueOf('S'), Item.stick});
            //Dracas Tools Recipe
            ModLoader.addRecipe(new ItemStack(shovelDracas, 1), new Object[] {" X ", " S ", " S ", Character.valueOf('X'), itemDracasIngot, Character.valueOf('S'), Item.stick});
            ModLoader.addRecipe(new ItemStack(pickaxeDracas, 1), new Object[] {"XXX", " S ", " S ", Character.valueOf('X'), itemDracasIngot, Character.valueOf('S'), Item.stick});
            ModLoader.addRecipe(new ItemStack(axeDracas, 1), new Object[] {"XX ", "XS ", " S ", Character.valueOf('X'), itemDracasIngot, Character.valueOf('S'), Item.stick});
            ModLoader.addRecipe(new ItemStack(axeDracas, 1), new Object[] {" XX", " SX", " S ", Character.valueOf('X'), itemDracasIngot, Character.valueOf('S'), Item.stick});
            ModLoader.addRecipe(new ItemStack(swordDracas, 1), new Object[] {" X ", " X ", " S ", Character.valueOf('X'), itemDracasIngot, Character.valueOf('S'), Item.stick});
            ModLoader.addRecipe(new ItemStack(hoeDracas, 1), new Object[] {"XX ", " S ", " S ", Character.valueOf('X'), itemDracasIngot, Character.valueOf('S'), Item.stick});     
            ModLoader.addRecipe(new ItemStack(hoeDracas, 1), new Object[] {" XX", " S ", " S ", Character.valueOf('X'), itemDracasIngot, Character.valueOf('S'), Item.stick});
            //Toxus Tools Recipe
            ModLoader.addRecipe(new ItemStack(shovelToxus, 1), new Object[] {" X ", " S ", " S ", Character.valueOf('X'), itemToxusIngot, Character.valueOf('S'), Item.stick});
            ModLoader.addRecipe(new ItemStack(pickaxeToxus, 1), new Object[] {"XXX", " S ", " S ", Character.valueOf('X'), itemToxusIngot, Character.valueOf('S'), Item.stick});
            ModLoader.addRecipe(new ItemStack(axeToxus, 1), new Object[] {"XX ", "XS ", " S ", Character.valueOf('X'), itemToxusIngot, Character.valueOf('S'), Item.stick});
            ModLoader.addRecipe(new ItemStack(axeToxus, 1), new Object[] {" XX", " SX", " S ", Character.valueOf('X'), itemToxusIngot, Character.valueOf('S'), Item.stick});
            ModLoader.addRecipe(new ItemStack(swordToxus, 1), new Object[] {" X ", " X ", " S ", Character.valueOf('X'), itemToxusIngot, Character.valueOf('S'), Item.stick});
            ModLoader.addRecipe(new ItemStack(hoeToxus, 1), new Object[] {"XX ", " S ", " S ", Character.valueOf('X'), itemToxusIngot, Character.valueOf('S'), Item.stick});     
            ModLoader.addRecipe(new ItemStack(hoeToxus, 1), new Object[] {" XX", " S ", " S ", Character.valueOf('X'), itemToxusIngot, Character.valueOf('S'), Item.stick});
       
        
        }
        //block generate
        public void generateSurface(World world, Random rand, int chunkX, int chunkZ)
        {
                        for(int l = 0; l < 30; l++) //40 = amount of attempted veins in a chunk
                        {
                                int i1 = chunkX + rand.nextInt(16); //part of chunk 
                                int j1 = rand.nextInt(128); // spawns up to Y coordinate from floor 0
                                int k1 = chunkZ + rand.nextInt(16); //part of chunk 
                                (new WorldGenMinable(blockSathusOre.blockID, ).generate(world, rand, i1, j1, k1); // Block to generate
                        }
                        for(int l = 0; l < 20; l++) //30 = amount of attempted veins in a chunk
                        {
                                int i1 = chunkX + rand.nextInt(16); //part of chunk 
                                int j1 = rand.nextInt(80); // spawns up to Y coordinate from floor 0
                                int k1 = chunkZ + rand.nextInt(16); //part of chunk 
                                (new WorldGenMinable(blockIxasOre.blockID, ).generate(world, rand, i1, j1, k1); // Block to generate
                        }
                        for(int l = 0; l < 10; l++) //20 = amount of attempted veins in a chunk
                        {
                                int i1 = chunkX + rand.nextInt(16); //part of chunk 
                                int j1 = rand.nextInt(40); // spawns up to Y coordinate from floor 0
                                int k1 = chunkZ + rand.nextInt(16); //part of chunk 
                                (new WorldGenMinable(blockDracasOre.blockID, 6)).generate(world, rand, i1, j1, k1); // Block to generate
                        }
                        for(int l = 0; l < 5; l++) //10 = amount of attempted veins in a chunk
                        {
                                int i1 = chunkX + rand.nextInt(16); //part of chunk 
                                int j1 = rand.nextInt(20); // spawns up to Y coordinate from floor 0
                                int k1 = chunkZ + rand.nextInt(16); //part of chunk 
                                (new WorldGenMinable(blockToxusOre.blockID, 4)).generate(world, rand, i1, j1, k1); // Block to generate
                        }
        }

        
        
        public String getVersion()
        {
                return "AbsolutOres v1.0 for 1.2.5";
        }

}

 

itemXXXXIngot.java

package net.minecraft.src;

import java.util.ArrayList;
import net.minecraft.src.forge.*;

public class itemSathusIngot extends Item
{
	public itemSathusIngot(int i) 
	{
		super(i);
	}

        public String getTextureFile()
        {
                return "/AbsolutOresitems.png";
        }
        
        public void addCreativeItems(ArrayList itemList)
        {
                itemList.add(new ItemStack(this));
        }
}

 

Image of Inventory during Eclipse test & .minecraft Test after re-obfuscation.

jvn4K.png

 

 

Thank-you in Advance

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.



×
×
  • Create New...

Important Information

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