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";
}
}
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
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";
}
}
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)
= :smile.gif:
(how it is)
=
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
});
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)
0
all the stuff pertaining to armor is in one class file
0
0
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
0
0
ah.. well thanks anyways hah
0
thanks
0
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?
0
EDIT: ok i'm just gonna have to repost then or something cuz this is annoying me
0
*le bump*
0
the object
i roll over it says "Chromium" instead of "Chromium Chestplate"
and it has the sprite of the Chromium
0
yup its a folder in the /bin/minecraft folder in MCP
0
(how it's supposed to be)
= :smile.gif:
(how it is)
=
here is my code:
0
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)
0
0