Hi SCMowns after I added the green pick axe to minecraft when I try to lunch minecraft through eclipse it says there is an error in the required projects:
client
please help me
And I was also wondering if you could make a new download link for the items in your description because I can no longer download your pictures that you use in your tutorials
Hi SCMowns after I added the green pick axe to minecraft when I try to lunch minecraft through eclipse it says there is an error in the required projects:
client
please help me
And I was also wondering if you could make a new download link for the items in your description because I can no longer download your pictures that you use in your tutorials
me a screen shot and your source code and i can fix da problem
/**
* The level of material this tool can harvest (3 = DIAMOND, 2 = IRON, 1 = STONE, 0 = IRON/GOLD)
*/
private final int harvestLevel;
/**
* The number of uses this material allows. (wood = 59, stone = 131, iron = 250, diamond = 1561, gold = 32)
*/
private final int maxUses;
/**
* The strength of this tool material against blocks which it is effective against.
*/
private final float efficiencyOnProperMaterial;
/** Damage versus entities. */
private final int damageVsEntity;
/** Defines the natural enchantability factor of the material. */
private final int enchantability;
private EnumToolMaterial(int par3, int par4, float par5, int par6, int par7)
{
this.harvestLevel = par3;
this.maxUses = par4;
this.efficiencyOnProperMaterial = par5;
this.damageVsEntity = par6;
this.enchantability = par7;
}
/**
* The number of uses this material allows. (wood = 59, stone = 131, iron = 250, diamond = 1561, gold = 32)
*/
public int getMaxUses()
{
return this.maxUses;
}
/**
* The strength of this tool material against blocks which it is effective against.
*/
public float getEfficiencyOnProperMaterial()
{
return this.efficiencyOnProperMaterial;
}
/**
* Damage versus entities.
*/
public int getDamageVsEntity()
{
return this.damageVsEntity;
}
/**
* The level of material this tool can harvest (3 = DIAMOND, 2 = IRON, 1 = STONE, 0 = IRON/GOLD)
*/
public int getHarvestLevel()
{
return this.harvestLevel;
}
/**
* Return the natural enchantability factor of the material.
*/
public int getEnchantability()
{
return this.enchantability;
}
/**
* Return the crafting material for this tool material, used to determine the item that can be used to repair a tool
* with an anvil
*/
public int getToolCraftingMaterial()
{
return this == WOOD ? Block.planks.blockID : (this == STONE ? Block.cobblestone.blockID : (this == GOLD ? Item.ingotGold.itemID : (this == IRON ? Item.ingotIron.itemID : (this == EMERALD ? Item.diamond.itemID : 0))));
}
}
but it think there is an error on int on the private final int harvestlevels
public class mod_minecraft extends BaseMod
{
//green gem
public static final Item greengem = new ItemGreenGem(2085).setItemName("greengem").setCreativeTab(CreativeTabs.tabMaterials);
//ruby
public static final Item ruby = new Itemruby(2000).setItemName("ruby").setCreativeTab(CreativeTabs.tabMaterials);
//sapphire
public static final Item sapphire = new Itemsaphire(1000).setItemName("saphire").setCreativeTab(CreativeTabs.tabMaterials);
//ruby sword
public static final Item rubySword = new ItemSword(2001, EnumToolMaterial.ruby).setItemName("rubySword");
//sapphire sword
public static final Item sapphireSword = new ItemSword(1001, EnumToolMaterial.saphire).setItemName("Sapphire sword");
//green sword
public static final Item GreenSword = new ItemSword(3077, EnumToolMaterial.GreenGem).setItemName("GreenSword");
//green pick axe
public static final Item greenPick = new ItemPickaxe(2102, EnumToolMaterial.GreenGem).setItemName("GreenPick");
//ruby pick
public static final Item rubyPick = new ItemPickaxe(2002, EnumToolMaterial.ruby).setItemName("rubyPick");
//sapphire pick
public static final Item sapphirePick = new ItemPickaxe(1002, EnumToolMaterial.saphire).setItemName("SapphirePick");
//green axe
public static final Item greenAxe = new ItemAxe(2096, EnumToolMaterial.GreenGem).setItemName("GreenAxe");
//sapphire axe
public static final Item sapphireAxe = new ItemAxe(1004, EnumToolMaterial.saphire).setItemName("SapphireAxe");
//ruby axe
public static final Item rubyAxe = new ItemAxe(2004, EnumToolMaterial.ruby).setItemName("RubyAxe");
//green spade
public static final Item greenSpade = new ItemSpade(2099, EnumToolMaterial.GreenGem).setItemName("GreenSpade");
//sapphire spade
public static final Item sapphireSpade = new ItemSpade(1003, EnumToolMaterial.saphire).setItemName("SapphireSpade");
//ruby spade
public static final Item rubySpade = new ItemSpade(2003, EnumToolMaterial.ruby).setItemName("rubySpade");
//green hoe
public static final Item greenHoe = new ItemHoe(2107, EnumToolMaterial.GreenGem).setItemName("GreenHoe");
//ruby hoe
public static final Item rubyHoe = new ItemHoe(2005, EnumToolMaterial.ruby).setItemName("RubyHoe");
//sapphire hoe
public static final Item sapphireHoe = new ItemHoe(1005, EnumToolMaterial.saphire).setItemName("sapphireHoe");
//green ore
public static final Block greenBlock = new Blockgreen(151, 0).setHardness(6F).setResistance(7.0F).setBlockName("GreenOre");
public void generateSurface(World world, Random random, int chunkX, int chunkZ)
{
Random randomGenerator = random;
for (int i = 0; i < 10; i++)
{
int randPosX = chunkX + randomGenerator.nextInt(10);
int randPosY = random.nextInt(60);
int randPosZ = chunkZ + randomGenerator.nextInt(10);
(new WorldGenMinable(greenBlock.blockID, 10)).generate(world, random, randPosX, randPosY, randPosZ);
}
}
public class Blockgreen extends Block
{
protected Blockgreen(int i, int j)
{
super(i, j, Material.iron);
}
public int idDropped(int par1, Random par2Random, int par3)
{
return mod_minecraft.greengem.shiftedIndex;
}
public int quantityDropped(Random random)
{
return 1;
}
public String Version()
{
return "3.14159265";
}
}
everything else worked before I added the ore generating though
I got rid of everything to do with the second ore and all my images are 16 by 16 pixles and my minecraft still crashes!!!
there is no crosses in my eclipse
Hey SCMowns, i was wondering how do you add a crafting recipe for an item, not a pickaxe or a shovel, but an item, ex: how would you make a crafting recipe for a green Gem
When I added the topaz armor my minecraft crashes this is my code for the topaz armor. In the: .TOPAZ,10,1 can you go 10 or over
package net.minecraft.src;
import net.minecraft.client.Minecraft;
public class mod_MCarmor extends BaseMod
{
//topaz armor
public static final Item topazBody = (new ItemArmor(8001, EnumArmorMaterial.TOPAZ ,10,1 ).setItemName("TopazBody"));
public static final Item topazHelmet = (new ItemArmor(8000,EnumArmorMaterial.TOPAZ ,10,0 ).setItemName("TopazHelmet"));
public static final Item topazPants = (new ItemArmor(8002,EnumArmorMaterial.TOPAZ ,10,2 ).setItemName("TopazPants"));
public static final Item topazBoots = (new ItemArmor(8003,EnumArmorMaterial.TOPAZ, 10, 3 ).setItemName("TopazBoots"));
I will see if Audiomod now works again, I will try my best to make a video right now
client
please help me
And I was also wondering if you could make a new download link for the items in your description because I can no longer download your pictures that you use in your tutorials
me a screen shot and your source code and i can fix da problem
package net.minecraft.src;
import java.util.Random;
public class mod_minecraft extends BaseMod
{
//gem
public static final Item greengem = new ItemGreenGem(2085).setItemName("greengemsssssss").setCreativeTab(CreativeTabs.tabMaterials);
//sword
public static final Item GreenSword = new ItemSword(3077, EnumToolMaterial.GreenGem).setItemName("GreenSword");
//pick axe
public static final Item greenPick = new ItemPickaxe(2102, EnumToolMaterial.GreenGem).setItemName("GreenPick");
public void load()
{
//Gem
greengem.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/GreenGem.png");
ModLoader.addName(greengem, "GreenGem");
//Sword
GreenSword.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/green sword.png");
ModLoader.addName(GreenSword, "Green Sword");
ModLoader.addRecipe(new ItemStack(GreenSword, 1), new Object[]
{
" * ", " * ", " X ",
'X', Item.stick, '*', greengem
});
//pick
greenPick.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/green pick.png");
ModLoader.addName(greenPick, "Green Pickaxe");
ModLoader.addRecipe(new ItemStack(greenPick, 1), new Object[]
{
"***", " X ", " X ",
'X', Item.stick, '*', greengem
});
}
public String getVersion()
{
return "3.14159265";
}
}
This is my item greengem
package net.minecraft.src;
import java.util.Random;
public class ItemGreenGem extends Item
{
public ItemGreenGem(int i)
{
super(i);
maxStackSize = 64;
}
public String Version()
{
return "3.14159265";
}
}
this is my enumtoolmaterial
package net.minecraft.src;
public enum EnumToolMaterial
{
WOOD(0, 59, 2.0F, 0, 15),
STONE(1, 131, 4.0F, 1, 5),
IRON(2, 250, 6.0F, 2, 14),
EMERALD(3, 1561, 8.0F, 3, 10),
GOLD(0, 32, 12.0F, 0, 22),
GreenGem(5, 10000, 20.20F, 1000, 10000),
/**
* The level of material this tool can harvest (3 = DIAMOND, 2 = IRON, 1 = STONE, 0 = IRON/GOLD)
*/
private final int harvestLevel;
/**
* The number of uses this material allows. (wood = 59, stone = 131, iron = 250, diamond = 1561, gold = 32)
*/
private final int maxUses;
/**
* The strength of this tool material against blocks which it is effective against.
*/
private final float efficiencyOnProperMaterial;
/** Damage versus entities. */
private final int damageVsEntity;
/** Defines the natural enchantability factor of the material. */
private final int enchantability;
private EnumToolMaterial(int par3, int par4, float par5, int par6, int par7)
{
this.harvestLevel = par3;
this.maxUses = par4;
this.efficiencyOnProperMaterial = par5;
this.damageVsEntity = par6;
this.enchantability = par7;
}
/**
* The number of uses this material allows. (wood = 59, stone = 131, iron = 250, diamond = 1561, gold = 32)
*/
public int getMaxUses()
{
return this.maxUses;
}
/**
* The strength of this tool material against blocks which it is effective against.
*/
public float getEfficiencyOnProperMaterial()
{
return this.efficiencyOnProperMaterial;
}
/**
* Damage versus entities.
*/
public int getDamageVsEntity()
{
return this.damageVsEntity;
}
/**
* The level of material this tool can harvest (3 = DIAMOND, 2 = IRON, 1 = STONE, 0 = IRON/GOLD)
*/
public int getHarvestLevel()
{
return this.harvestLevel;
}
/**
* Return the natural enchantability factor of the material.
*/
public int getEnchantability()
{
return this.enchantability;
}
/**
* Return the crafting material for this tool material, used to determine the item that can be used to repair a tool
* with an anvil
*/
public int getToolCraftingMaterial()
{
return this == WOOD ? Block.planks.blockID : (this == STONE ? Block.cobblestone.blockID : (this == GOLD ? Item.ingotGold.itemID : (this == IRON ? Item.ingotIron.itemID : (this == EMERALD ? Item.diamond.itemID : 0))));
}
}
but it think there is an error on int on the private final int harvestlevels
this is my mod_minecraft
package net.minecraft.src;
import java.util.Random;
public class mod_minecraft extends BaseMod
{
//green gem
public static final Item greengem = new ItemGreenGem(2085).setItemName("greengem").setCreativeTab(CreativeTabs.tabMaterials);
//ruby
public static final Item ruby = new Itemruby(2000).setItemName("ruby").setCreativeTab(CreativeTabs.tabMaterials);
//sapphire
public static final Item sapphire = new Itemsaphire(1000).setItemName("saphire").setCreativeTab(CreativeTabs.tabMaterials);
//ruby sword
public static final Item rubySword = new ItemSword(2001, EnumToolMaterial.ruby).setItemName("rubySword");
//sapphire sword
public static final Item sapphireSword = new ItemSword(1001, EnumToolMaterial.saphire).setItemName("Sapphire sword");
//green sword
public static final Item GreenSword = new ItemSword(3077, EnumToolMaterial.GreenGem).setItemName("GreenSword");
//green pick axe
public static final Item greenPick = new ItemPickaxe(2102, EnumToolMaterial.GreenGem).setItemName("GreenPick");
//ruby pick
public static final Item rubyPick = new ItemPickaxe(2002, EnumToolMaterial.ruby).setItemName("rubyPick");
//sapphire pick
public static final Item sapphirePick = new ItemPickaxe(1002, EnumToolMaterial.saphire).setItemName("SapphirePick");
//green axe
public static final Item greenAxe = new ItemAxe(2096, EnumToolMaterial.GreenGem).setItemName("GreenAxe");
//sapphire axe
public static final Item sapphireAxe = new ItemAxe(1004, EnumToolMaterial.saphire).setItemName("SapphireAxe");
//ruby axe
public static final Item rubyAxe = new ItemAxe(2004, EnumToolMaterial.ruby).setItemName("RubyAxe");
//green spade
public static final Item greenSpade = new ItemSpade(2099, EnumToolMaterial.GreenGem).setItemName("GreenSpade");
//sapphire spade
public static final Item sapphireSpade = new ItemSpade(1003, EnumToolMaterial.saphire).setItemName("SapphireSpade");
//ruby spade
public static final Item rubySpade = new ItemSpade(2003, EnumToolMaterial.ruby).setItemName("rubySpade");
//green hoe
public static final Item greenHoe = new ItemHoe(2107, EnumToolMaterial.GreenGem).setItemName("GreenHoe");
//ruby hoe
public static final Item rubyHoe = new ItemHoe(2005, EnumToolMaterial.ruby).setItemName("RubyHoe");
//sapphire hoe
public static final Item sapphireHoe = new ItemHoe(1005, EnumToolMaterial.saphire).setItemName("sapphireHoe");
//green ore
public static final Block greenBlock = new Blockgreen(151, 0).setHardness(6F).setResistance(7.0F).setBlockName("GreenOre");
public void generateSurface(World world, Random random, int chunkX, int chunkZ)
{
Random randomGenerator = random;
for (int i = 0; i < 10; i++)
{
int randPosX = chunkX + randomGenerator.nextInt(10);
int randPosY = random.nextInt(60);
int randPosZ = chunkZ + randomGenerator.nextInt(10);
(new WorldGenMinable(greenBlock.blockID, 10)).generate(world, random, randPosX, randPosY, randPosZ);
}
}
public void load()
{
//green Gem
greengem.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/GreenGem.png");
ModLoader.addName(greengem, "GreenGem");
//ruby
ruby.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/Ruby.png");
ModLoader.addName(ruby, "Ruby");
//sapphire
sapphire.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/saphire.png");
ModLoader.addName(sapphire, "sapphire");
//green Sword
GreenSword.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/green sword.png");
ModLoader.addName(GreenSword, "Green Sword");
ModLoader.addRecipe(new ItemStack(GreenSword, 1), new Object[]
{
" * ", " * ", " X ",
'X', Item.stick, '*', greengem
});
//sapphire sword
sapphireSword.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/sapphire sword.png");
ModLoader.addName(sapphireSword, "Sapphire Sword");
ModLoader.addRecipe(new ItemStack(GreenSword, 1), new Object[]
{
" * ", " * ", " X ",
'X', Item.stick, '*', sapphire
});
//ruby sword
rubySword.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/rubysword.png");
ModLoader.addName(rubySword, "ruby Sword");
ModLoader.addRecipe(new ItemStack(rubySword, 1), new Object[]
{
" * ", " * ", " X ",
'X', Item.stick, '*', ruby
});
//green pick
greenPick.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/green pick.png");
ModLoader.addName(greenPick, "Green Pickaxe");
ModLoader.addRecipe(new ItemStack(greenPick, 1), new Object[]
{
"***", " X ", " X ",
'X', Item.stick, '*', greengem
});
//sapphire pick
sapphirePick.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/sapphire pick.png");
ModLoader.addName(sapphirePick, "Sapphire Pickaxe");
ModLoader.addRecipe(new ItemStack(sapphirePick, 1), new Object[]
{
"***", " X ", " X ",
'X', Item.stick, '*', sapphire
});
//ruby pick
rubyPick.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/ruby pick.png");
ModLoader.addName(rubyPick, "Ruby Pickaxe");
ModLoader.addRecipe(new ItemStack(rubyPick, 1), new Object[]
{
"***", " X ", " X ",
'X', Item.stick, '*', ruby
});
//green axe
greenAxe.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/green axe.png");
ModLoader.addName(greenAxe, "Green Axe");
ModLoader.addRecipe(new ItemStack(greenAxe, 1), new Object[]
{
"** ", "*X ", " X ",
'X', Item.stick, '*', greengem
});
//sapphire axe
sapphireAxe.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/sapphire axe.png");
ModLoader.addName(sapphireAxe, "sapphire Axe");
ModLoader.addRecipe(new ItemStack(sapphireAxe, 1), new Object[]
{
"** ", "*X ", " X ",
'X', Item.stick, '*', sapphire
});
//ruby axe
rubyAxe.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/ruby axe.png");
ModLoader.addName(rubyAxe, "Ruby Axe");
ModLoader.addRecipe(new ItemStack(rubyAxe, 1), new Object[]
{
"** ", "*X ", " X ",
'X', Item.stick, '*', ruby
});
//green spade
greenSpade.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/green spade.png");
ModLoader.addName(greenSpade, "Green Shovel");
ModLoader.addRecipe(new ItemStack(greenSpade, 1), new Object[]
{
" * ", " X ", " X ",
'X', Item.stick, '*', greengem
});
//sapphire spade
sapphireSpade.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/sapphire spade.png");
ModLoader.addName(sapphireSpade, "Sapphire Shovel");
ModLoader.addRecipe(new ItemStack(sapphireSpade, 1), new Object[]
{
" * ", " X ", " X ",
'X', Item.stick, '*', sapphire
});
//ruby spade
rubySpade.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/ruby spade.png");
ModLoader.addName(rubySpade, "Ruby Shovel");
ModLoader.addRecipe(new ItemStack(rubySpade, 1), new Object[]
{
" * ", " X ", " X ",
'X', Item.stick, '*', ruby
});
//green hoe
greenHoe.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/green hoe.png");
ModLoader.addName(greenHoe, "Green Hoe");
ModLoader.addRecipe(new ItemStack(greenHoe, 1), new Object[]
{
"** ", " X ", " X ",
'X', Item.stick, '*', greengem
});
//sapphire hoe
sapphireHoe.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/sapphire hoe.png");
ModLoader.addName(sapphireHoe, "Sapphire Hoe");
ModLoader.addRecipe(new ItemStack(sapphireHoe, 1), new Object[]
{
"** ", " X ", " X ",
'X', Item.stick, '*', sapphire
});
//ruby hoe
rubyHoe.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/ruby hoe.png");
ModLoader.addName(rubyHoe, "Ruby Hoe");
ModLoader.addRecipe(new ItemStack(rubyHoe, 1), new Object[]
{
"** ", " X ", " X ",
'X', Item.stick, '*', ruby
});
//green ore.
ModLoader.registerBlock(greenBlock);
greenBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png" , "/items/green gem ore.png");
ModLoader.addName(greenBlock, "Green Ore");
}
public String getVersion()
{
return "3.14159265";
}
}
this is my block green
package net.minecraft.src;
import java.util.Random;
public class Blockgreen extends Block
{
protected Blockgreen(int i, int j)
{
super(i, j, Material.iron);
}
public int idDropped(int par1, Random par2Random, int par3)
{
return mod_minecraft.greengem.shiftedIndex;
}
public int quantityDropped(Random random)
{
return 1;
}
public String Version()
{
return "3.14159265";
}
}
everything else worked before I added the ore generating though
I've already got an answeranyone help
there is no crosses in my eclipse
please help
ModLoader.registerBlock(greenBlock);
greenBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png" , "/items/Gem.png");
ModLoader.addName(greenBlock, "Green Ore");
package net.minecraft.src;
import net.minecraft.client.Minecraft;
public class mod_MCarmor extends BaseMod
{
//topaz armor
public static final Item topazBody = (new ItemArmor(8001, EnumArmorMaterial.TOPAZ ,10,1 ).setItemName("TopazBody"));
public static final Item topazHelmet = (new ItemArmor(8000,EnumArmorMaterial.TOPAZ ,10,0 ).setItemName("TopazHelmet"));
public static final Item topazPants = (new ItemArmor(8002,EnumArmorMaterial.TOPAZ ,10,2 ).setItemName("TopazPants"));
public static final Item topazBoots = (new ItemArmor(8003,EnumArmorMaterial.TOPAZ, 10, 3 ).setItemName("TopazBoots"));
public void load()
{
//topaz armor
//topaz chetplate
topazBody.iconIndex = ModLoader.addOverride("/gui/items.png", "/items/topaz chestplate.png");
ModLoader.addName(topazBody, "Topaz Chestplate");
ModLoader.addRecipe(new ItemStack(topazBody,1), new Object[]{
"* *", "***", "***", Character.valueOf('*'),mod_minecraft.topaz});
//topaz helmet
topazHelmet.iconIndex = ModLoader.addOverride("/gui/items.png", "/items/topaz helmet.png");
ModLoader.addName(topazHelmet, "Topaz Helmet");
ModLoader.addRecipe(new ItemStack(topazHelmet,1), new Object[]{
"***", "* *", Character.valueOf('*'), mod_minecraft.topaz});
//topaz leggings
topazPants.iconIndex = ModLoader.addOverride("/gui/items.png", "/items/topaz leggings.png");
ModLoader.addName(topazPants, "Topaz Leggings");
ModLoader.addRecipe(new ItemStack(topazPants,1), new Object[]{
"***", "* *", "* *", Character.valueOf('*'), mod_minecraft.topaz});
//topaz boots
topazBoots.iconIndex = ModLoader.addOverride("/gui/items.png", "/items/topaz boots.png");
ModLoader.addName(topazBoots, "Topaz Boots");
ModLoader.addRecipe(new ItemStack(topazBoots,1), new Object[]{
"* *", "* *", Character.valueOf('*'), mod_minecraft.topaz});
ModLoader.addArmor("topaz");
}
public String Version()
{
return "1.4.2";
}
public String getVersion()
{
return "3.14159265";
}
}