• 0

    posted a message on The recipe for my Armor just creates what it's made of?!
    Quote from FanaticMW2

    I think I can help. Is this all in on java file for is it multiple java files?

    all the stuff pertaining to armor is in one class file
    Posted in: Mods Discussion
  • 0

    posted a message on The recipe for my Armor just creates what it's made of?!
    Thanks all of you who are tryin to help and i've tried many of the things you have said... and still its the same. here's my new code after i made alterations
    // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
    // Jad home page: http://www.kpdus.com/jad.html
    // Decompiler options: packimports(3) braces deadcode 
    
    package net.minecraft.src;
    
    import java.util.Random;
    
    // Referenced classes of package net.minecraft.src:
    //            Block, Material, World, WorldProvider, 
    //            EntityPlayer, ChunkCoordinates, EnumStatus, ModelBed, 
    //            Item, IBlockAccess
    
    public class mod_Chrome extends BaseMod{
    	
    	public static Item chestplate = (new ItemArmor(3000, 3, ModLoader.AddArmor("Chestplate"), 1).setItemName("Chestplate"));
    	public static Item head = (new ItemArmor(3001, 3, 5, 0).setItemName("Chead"));
    	public static Item pants = (new ItemArmor(3002, 3, 5, 2).setItemName("Cpants"));
    	public static Item boots = (new ItemArmor(3003, 3, 5, 3).setItemName("Cboots"));
    	public static final Item Pickaxe = new ItemPickaxe(123, EnumToolMaterial.Chromium).setItemName("Cpick");
    	public static final Item Axe = new ItemAxe(124, EnumToolMaterial.Chromium).setItemName("Caxe");
    	public static final Item Spade = new ItemSpade(125, EnumToolMaterial.Chromium).setItemName("Cspade");
    	public static final Item Hoe = new ItemHoe(126, EnumToolMaterial.Chromium).setItemName("Choe");
    	public static final Item Sword = new ItemSword(127, EnumToolMaterial.Chromium).setItemName("Csword");
    
    	
    	public mod_Chrome(){
    		ModLoader.RegisterBlock(chromeore);
    		
    		ModLoader.AddName(pants, "Chromium Greaves");
    		ModLoader.AddName(boots, "Chromium Boots");
    		ModLoader.AddName(head, "Chromium Helmet");
    		ModLoader.AddName(chestplate, "Chromium Chestplate");
    		ModLoader.AddName(chromeore, "Chromite");
    		ModLoader.AddName(chromium, "Chromium");
    		ModLoader.AddName(Pickaxe, "Chrome Pickaxe");
    		ModLoader.AddName(Axe, "Chrome Axe");
    		ModLoader.AddName(Spade, "Chrome Shovel");
    		ModLoader.AddName(Hoe,  "Chrome Hoe");
    		ModLoader.AddName(Sword,  "ChromeSword");
    		
    		chestplate.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/items/Cchest.png");
    		head.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/items/Chelm.png");
    		pants.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/items/Cpants.png");
    		boots.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/items/Cboots.png");
    		chromium.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/items/Chromium.png");
    		Pickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/items/Cpick.png");
    		Axe.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/items/Caxe.png");
    		Spade.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/items/Cspade.png");
    		Hoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/items/Choe.png");
    		Sword.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/items/Csword.png");
    		
    		
    		ModLoader.AddSmelting(chromeore.blockID, new ItemStack(chromium));
    		
    		ModLoader.AddRecipe(new ItemStack(chestplate, 1), new Object[]{
    			"# #","###","###", Character.valueOf('#'), chromium
    		});
    		ModLoader.AddRecipe(new ItemStack(head, 1), new Object[]{
    			"###","# #", Character.valueOf('#'), chromium
    		});
    		ModLoader.AddRecipe(new ItemStack(pants, 1), new Object[]{
    			"###","# #","# #", Character.valueOf('#'), chromium
    		});
    		ModLoader.AddRecipe(new ItemStack(boots, 1), new Object[]{
    			"   ","# #","# #", Character.valueOf('#'), chromium
    		});
    		ModLoader.AddRecipe(new ItemStack(Pickaxe, 1), new Object[]{
    			"###"," % "," % ", Character.valueOf('#'), chromium, Character.valueOf('%'), Item.stick
    		});
    		ModLoader.AddRecipe(new ItemStack(Axe, 1), new Object[]{
    			"## ","#% "," % ", Character.valueOf('#'), chromium, Character.valueOf('%'), Item.stick
    		});
    		ModLoader.AddRecipe(new ItemStack(Spade, 1), new Object[]{
    			" # "," % ", " % ", Character.valueOf('#'), chromium, Character.valueOf('%'), Item.stick
    		});
    		ModLoader.AddRecipe(new ItemStack(Hoe, 1), new Object[]{
    			"## "," % "," % ", Character.valueOf('#'), chromium, Character.valueOf('%'), Item.stick
    		});
    		ModLoader.AddRecipe(new ItemStack(Sword, 1), new Object[]{
    			" # "," # "," % ", Character.valueOf('#'), chromium, Character.valueOf('%'), Item.stick
    		});
    	}
    	public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ){
    		for(int i = 0; i < 15; i++){
    			int randPosX = chunkX + rand.nextInt(16);
    			int randPosY = rand.nextInt(128);
    			int randPosZ = chunkZ + rand.nextInt(16);
    			(new WorldGenMinable(chromeore.blockID, 50)).generate(world, rand, randPosX, randPosY, randPosZ);
    		}
    	}
    	public static Block chromeore;
    	public static Item chromium = (new ItemChromium(ModLoader.getUniqueEntityId())).setItemName("chromium");
    	static{
    		chromeore = new BlockChromeOre(200, ModLoader.addOverride("/terrain.png", "/textures/blocks/ChromeOre.png")).setHardness(2.0F).setResistance(1.5F).setBlockName("chromeore");
    	}
    	
    	
    	public String Version(){
    		return "1.7_3";
    	}
    }
    Posted in: Mods Discussion
  • 0

    posted a message on The recipe for my Armor just creates what it's made of?!
    Quote from CarcinAlinari

    To PneumonicFungus and tyron1995, as long as the OP is referencing the body object inside the mod_Chrome file, it will still work. I just finished doing that and it works....

    To the OP, you might have to change the

    public static Item body = (new ItemArmor(3000, 3, 5, 1).setItemName("Cbody"));


    to

    public static Item body = (new ItemArmor(3000, 3, ModLoader.AddArmor("armorname"), 1).setItemName("Cbody"));


    to get the ModLoader to recognize that it is armor you are modifying. However, what "armorname" is will change what the textures of the armor is. Other than that, I can not see any other reason as to why your code would not work.

    I'll try that.sorry i won't have access to my computer so i'll try it later tonight and post what i get
    Posted in: Mods Discussion
  • 0

    posted a message on The recipe for my Armor just creates what it's made of?!
    ugh!
    Posted in: Mods Discussion
  • 0

    posted a message on The recipe for my Armor just creates what it's made of?!
    Quote from Kieran665

    Type:

    [*spoiler]

    type in here

    [*/spoiler]

    Obviously don't put the *'s in. Sorry but I don't have an idea about what's wrong with your code.

    ah.. well thanks anyways hah
    Posted in: Mods Discussion
  • 0

    posted a message on The recipe for my Armor just creates what it's made of?!
    Quote from TheArhive

    [.spoiler]stuff goes here[./spoiler]

    Stuff goes here

    thanks
    Posted in: Mods Discussion
  • 0

    posted a message on The recipe for my Armor just creates what it's made of?!
    Quote from red_royal

    hmmm... 2 things i get for a glance:
    1. You haven't declared your chromium-thingy ingot but you have an override, how are you even loading the game??
    2. Your armour seems to be badly named, this won't result in errors (Usually) but i suggest giving it a more suitable name for your sake.

    Btw i take it this isn't all your code?
    May i see the rest of it? Or at least the stuff that has relevance to chromium ore/armour?

    yeah this isn't all of my code i'll put it all up.. but waht did you mean by badly named? the "Cbody" part or what?

    package net.minecraft.src;
    
    import java.util.Random;
    
    // Referenced classes of package net.minecraft.src:
    //            Block, Material, World, WorldProvider, 
    //            EntityPlayer, ChunkCoordinates, EnumStatus, ModelBed, 
    //            Item, IBlockAccess
    
    public class mod_Chrome extends BaseMod{
    	
    	public static Item body = (new ItemArmor(3000, 3, 5, 1).setItemName("Cbody"));
    	public static Item head = (new ItemArmor(3001, 3, 5, 0).setItemName("Chead"));
    	public static Item pants = (new ItemArmor(3002, 3, 5, 2).setItemName("Cpants"));
    	public static Item boots = (new ItemArmor(3003, 3, 5, 3).setItemName("Cboots"));
    	public static final Item Pickaxe = new ItemPickaxe(123, EnumToolMaterial.Chromium).setItemName("Cpick");
    	public static final Item Axe = new ItemAxe(124, EnumToolMaterial.Chromium).setItemName("Caxe");
    	public static final Item Spade = new ItemSpade(125, EnumToolMaterial.Chromium).setItemName("Cspade");
    	public static final Item Hoe = new ItemHoe(126, EnumToolMaterial.Chromium).setItemName("Choe");
    	public static final Item Sword = new ItemSword(127, EnumToolMaterial.Chromium).setItemName("Csword");
    
    	
    	public mod_Chrome(){
    		ModLoader.RegisterBlock(chromeore);
    		
    		ModLoader.AddName(pants, "Chromium Greaves");
    		ModLoader.AddName(boots, "Chromium Boots");
    		ModLoader.AddName(head, "Chromium Helmet");
    		ModLoader.AddName(body, "Chromium Chestplate");
    		ModLoader.AddName(chromeore, "Chrome ore");
    		ModLoader.AddName(chromium, "Chromium");
    		ModLoader.AddName(Pickaxe, "Chrome Pickaxe");
    		ModLoader.AddName(Axe, "Chrome Axe");
    		ModLoader.AddName(Spade, "Chrome Shovel");
    		ModLoader.AddName(Hoe,  "Chrome Hoe");
    		ModLoader.AddName(Sword,  "ChromeSword");
    		
    		body.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/items/Cchest.png");
    		head.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/items/Chelm.png");
    		pants.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/items/Cpants.png");
    		boots.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/items/Cboots.png");
    		chromium.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/items/Chromium.png");
    		Pickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/items/Cpick.png");
    		Axe.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/items/Caxe.png");
    		Spade.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/items/Cspade.png");
    		Hoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/items/Choe.png");
    		Sword.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/items/Csword.png");
    		
    		
    		ModLoader.AddSmelting(chromeore.blockID, new ItemStack(chromium));
    		
    		ModLoader.AddRecipe(new ItemStack(body, 1), new Object[]{
    			"# #","###","###", Character.valueOf('#'), chromium
    		});
    		ModLoader.AddRecipe(new ItemStack(head, 1), new Object[]{
    			"###","# #", Character.valueOf('#'), chromium
    		});
    		ModLoader.AddRecipe(new ItemStack(pants, 1), new Object[]{
    			"###","# #","# #", Character.valueOf('#'), chromium
    		});
    		ModLoader.AddRecipe(new ItemStack(boots, 1), new Object[]{
    			"   ","# #","# #", Character.valueOf('#'), chromium
    		});
    		ModLoader.AddRecipe(new ItemStack(Pickaxe, 1), new Object[]{
    			"###"," % "," % ", Character.valueOf('#'), chromium, Character.valueOf('%'), Item.stick
    		});
    		ModLoader.AddRecipe(new ItemStack(Axe, 1), new Object[]{
    			"## ","#% "," % ", Character.valueOf('#'), chromium, Character.valueOf('%'), Item.stick
    		});
    		ModLoader.AddRecipe(new ItemStack(Spade, 1), new Object[]{
    			" # "," % ", " % ", Character.valueOf('#'), chromium, Character.valueOf('%'), Item.stick
    		});
    		ModLoader.AddRecipe(new ItemStack(Hoe, 1), new Object[]{
    			"## "," % "," % ", Character.valueOf('#'), chromium, Character.valueOf('%'), Item.stick
    		});
    		ModLoader.AddRecipe(new ItemStack(Sword, 1), new Object[]{
    			" # "," # "," % ", Character.valueOf('#'), chromium, Character.valueOf('%'), Item.stick
    		});
    	}
    	public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ){
    		for(int i = 0; i < 15; i++){
    			int randPosX = chunkX + rand.nextInt(16);
    			int randPosY = rand.nextInt(128);
    			int randPosZ = chunkZ + rand.nextInt(16);
    			(new WorldGenMinable(chromeore.blockID, 50)).generate(world, rand, randPosX, randPosY, randPosZ);
    		}
    	}
    	public static Block chromeore;
    	public static Item chromium = (new ItemChromium(ModLoader.getUniqueEntityId())).setItemName("chromium");
    	static{
    		chromeore = new BlockChromeOre(200, ModLoader.addOverride("/terrain.png", "/textures/blocks/ChromeOre.png")).setHardness(2.0F).setResistance(1.5F).setBlockName("chromeore");
    	}
    	
    	
    	public String Version(){
    		return "1.7_3";
    	}
    }
    Posted in: Mods Discussion
  • 0

    posted a message on The recipe for my Armor just creates what it's made of?!
    one last bump.. :sad.gif:
    EDIT: ok i'm just gonna have to repost then or something cuz this is annoying me
    Posted in: Mods Discussion
  • 0

    posted a message on The recipe for my Armor just creates what it's made of?!
    anyone know what it could be?
    *le bump*
    Posted in: Mods Discussion
  • 0

    posted a message on The recipe for my Armor just creates what it's made of?!
    Quote from HunterGR

    When you hightlight over the bar while crafting is it just the image thats not right or the object itself

    the object
    i roll over it says "Chromium" instead of "Chromium Chestplate"
    and it has the sprite of the Chromium
    Posted in: Mods Discussion
  • 0

    posted a message on The recipe for my Armor just creates what it's made of?!
    Quote from MinecraftArt

    Very strange, Do you have the files in
    ("/gui/items.png", "/textures/items/Cchest.png")
    ?

    yup its a folder in the /bin/minecraft folder in MCP
    Posted in: Mods Discussion
  • 0

    posted a message on The recipe for my Armor just creates what it's made of?!
    I've just been making a mod just to get the hang of modding before i make my full mods and i made "Chromium" which is a new ore that can be made into armor tools etc... well the recipes for the mod work for all of the pieces exept for my chestplate which when i do the right configuration just creates another chromium bar... for example:
    (how it's supposed to be)
    :Iron: :: :Iron:
    :Iron: :Iron: :Iron: = :smile.gif:
    :Iron: :Iron: :Iron:

    (how it is)
    :Iron: :: :Iron:
    :Iron: :Iron: :Iron: = :Iron:
    :Iron: :Iron: :Iron:
    here is my code:
    public class mod_Chrome extends BaseMod{
    	
    	public static Item body = (new ItemArmor(3000, 3, 5, 1).setItemName("Cbody"));
    	public static Item head = (new ItemArmor(3001, 3, 5, 0).setItemName("Chead"));
    	public static Item pants = (new ItemArmor(3002, 3, 5, 2).setItemName("Cpants"));
    	public static Item boots = (new ItemArmor(3003, 3, 5, 3).setItemName("Cboots"));
    	public static final Item Pickaxe = new ItemPickaxe(123, EnumToolMaterial.Chromium).setItemName("Cpick");
    	public static final Item Axe = new ItemAxe(124, EnumToolMaterial.Chromium).setItemName("Caxe");
    	public static final Item Spade = new ItemSpade(125, EnumToolMaterial.Chromium).setItemName("Cspade");
    	public static final Item Hoe = new ItemHoe(126, EnumToolMaterial.Chromium).setItemName("Choe");
    	public static final Item Sword = new ItemSword(127, EnumToolMaterial.Chromium).setItemName("Csword");
    
    	
    	public mod_Chrome(){
    		ModLoader.RegisterBlock(chromeore);
    		
    		ModLoader.AddName(pants, "Chromium Greaves");
    		ModLoader.AddName(boots, "Chromium Boots");
    		ModLoader.AddName(head, "Chromium Helmet");
    		ModLoader.AddName(body, "Chromium Chestplate");
    		ModLoader.AddName(chromeore, "Chrome ore");
    		ModLoader.AddName(chromium, "Chromium");
    		ModLoader.AddName(Pickaxe, "Chrome Pickaxe");
    		ModLoader.AddName(Axe, "Chrome Axe");
    		ModLoader.AddName(Spade, "Chrome Shovel");
    		ModLoader.AddName(Hoe,  "Chrome Hoe");
    		ModLoader.AddName(Sword,  "ChromeSword");
    		
    		body.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/items/Cchest.png");
    		head.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/items/Chelm.png");
    		pants.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/items/Cpants.png");
    		boots.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/items/Cboots.png");
    		chromium.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/items/Chromium.png");
    		Pickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/items/Cpick.png");
    		Axe.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/items/Caxe.png");
    		Spade.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/items/Cspade.png");
    		Hoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/items/Choe.png");
    		Sword.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/items/Csword.png");
    		
    		
    		ModLoader.AddSmelting(chromeore.blockID, new ItemStack(chromium));
    		
    		ModLoader.AddRecipe(new ItemStack(body, 1), new Object[]{
    			"# #","###","###", Character.valueOf('#'), chromium
    		});
    Posted in: Mods Discussion
  • 0

    posted a message on [WIP] Minecraft+
    Id be interested in helping too... so does that mean ur going to be asdding mobs like vampires? i like where this is going
    i already have a plan for a fantasy mob mod pack im going to start working on soon
    maybe ill help u haha
    i have a liiiiitle experience (i can make new blocks recipes etc but im learning modloader and npcs right now)
    Posted in: Requests / Ideas For Mods
  • 0

    posted a message on HALO MOD
    i was thinkin of maybe makin a mod like this but a mod that big would take a while and i have some other mods im gonna be working on
    Posted in: Requests / Ideas For Mods
  • 0

    posted a message on [MOD][WIP] Empire Mod! Elephant's Ftw
    damn you took my idea..... ah whatever ill keep working on mine.. its a little different than your one hahaha
    Posted in: WIP Mods
  • To post a comment, please .