--- BEGIN ERROR REPORT e74c8929 --------
Generated 4/23/12 4:17 PM
Minecraft: Minecraft 1.2.5
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_03, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: AMD Radeon HD 6570 version 4.2.11554 Compatibility Profile Context, ATI Technologies Inc.
java.lang.Error: Unresolved compilation problems:
UraniumOre cannot be resolved or is not a field
UraniumIngot cannot be resolved or is not a field
at net.minecraft.src.mod_UraniumOre.load(mod_UraniumOre.java:15)
at net.minecraft.src.ModLoader.init(ModLoader.java:856)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:157)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:85)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:12)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:424)
at net.minecraft.client.Minecraft.run(Minecraft.java:786)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT e4b2e856 ----------
--- BEGIN ERROR REPORT 33ed338b --------
Generated 4/23/12 6:04 PM
Minecraft: Minecraft 1.2.5
OS: Windows XP (x86) version 5.1
Java: 1.7.0_02, Oracle Corporation
VM: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Intel 845G version 1.3.0 - Build 4.14.10.4342, Intel
java.lang.ArrayIndexOutOfBoundsException: 271
at net.minecraft.src.ModLoader.initStats(ModLoader.java:905)
at net.minecraft.src.ModLoader.init(ModLoader.java:878)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:157)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:85)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:12)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:424)
at net.minecraft.client.Minecraft.run(Minecraft.java:786)
at java.lang.Thread.run(Thread.java:722)
--- END ERROR REPORT 494849f2 ----------
CodeHere:
package net.minecraft.src;
import java.util.Map;
import java.util.Random;
public class mod_MoreMobs extends BaseMod
{
public static final Item RiceGrain = new ItemFood(257, 1, 1F, false).setItemName("RiceGrain");
public static final Item RiceBundle = new ItemFood(258, 3, 1F, false).setItemName("RiceBundle");
public static final Item FriedRice = new ItemFood(259, 8, 1F, false).setItemName("FriedRice");
public static final Item BreadSlice = new ItemFood(260, 4, 1F, false).setItemName("BreadSlice");
public static final Item Bun = new ItemFood(261, 4, 1F, false).setItemName("Bun");
public static final Item HotDog = new ItemFood(262, 8, 1F, false).setItemName("HotDog");
public static final Item Burger = new ItemFood(263, 8, 1F, false).setItemName("Burger");
public static final Item Sandwich = new ItemFood(264, 6, 1F, false).setItemName("Sandwich");
public static final Item Flour = new ItemFood(265, 2, 1F, false).setItemName("Flour");
public static final Item Dough = new ItemFood(266, 2, 1F, false).setItemName("Dough");
public static final Item Cheese = new ItemFood(267, 2, 1F, false).setItemName("Cheese");
public static final Item Pepperoni = new ItemFood(268, 2, 1F, false).setItemName("Pepperoni");
public static final Item Tomato = new ItemFood(269, 2, 1F, false).setItemName("Tomato");
public static final Item Pizza = new ItemFood(270, 10, 1F, false).setItemName("Pizza");
public void load()
{
RiceGrain.iconIndex = ModLoader.addOverride("/gui/items.png", "/RiceGrain.png");
ModLoader.addName(RiceGrain, "RiceGrain");
ModLoader.addRecipe(new ItemStack(RiceGrain, 1), new Object [] {"## ", Character.valueOf('#'), Item.wheat});
RiceBundle.iconIndex = ModLoader.addOverride("/gui/items.png", "/RiceBundle.png");
ModLoader.addName(RiceBundle, "RiceBundle");
ModLoader.addRecipe(new ItemStack(RiceBundle, 1), new Object [] {"###", "###", "###", Character.valueOf('#'), RiceGrain});
FriedRice.iconIndex = ModLoader.addOverride("/gui/items.png", "/FriedRice.png");
ModLoader.addName(FriedRice, "FriedRice");
ModLoader.addSmelting(RiceBundle.shiftedIndex, new ItemStack(FriedRice, 1));
BreadSlice.iconIndex = ModLoader.addOverride("/gui/items.png", "/BreadSlice.png");
ModLoader.addName(BreadSlice, "BreadSlice");
ModLoader.addRecipe(new ItemStack(BreadSlice, 2), new Object [] {" # ", Character.valueOf('#'), Item.bread});
Bun.iconIndex = ModLoader.addOverride("/gui/items.png", "/Bun.png");
ModLoader.addName(Bun, "Bun");
ModLoader.addRecipe(new ItemStack(Bun, 2), new Object [] {"###", Character.valueOf('#'), Item.bread});
HotDog.iconIndex = ModLoader.addOverride("/gui/items.png", "/HotDog.png");
ModLoader.addName(HotDog, "HotDog");
ModLoader.addRecipe(new ItemStack(HotDog, 1), new Object [] {"###", "PPP", "###", Character.valueOf('#'), Bun, Character.valueOf('P'), Item.porkCooked});
Burger.iconIndex = ModLoader.addOverride("/gui/items.png", "/Burger.png");
ModLoader.addName(Burger, "Burger");
ModLoader.addRecipe(new ItemStack(Burger, 1), new Object [] {"###", "BBB", "###", Character.valueOf('#'), Bun, Character.valueOf('B'), Item.beefCooked});
Sandwich.iconIndex = ModLoader.addOverride("/gui/items.png", "/Sandwich.png");
ModLoader.addName(Sandwich, "Sandwich");
ModLoader.addRecipe(new ItemStack(Sandwich, 1), new Object [] {" # ", "BBB", " # ", Character.valueOf('#'), BreadSlice, Character.valueOf('B'), Item.beefCooked});
Flour.iconIndex = ModLoader.addOverride("/gui/items.png", "/Flour.png");
ModLoader.addName(Flour, "Flour");
ModLoader.addRecipe(new ItemStack(Flour, 4), new Object [] {" # ", Character.valueOf('#'), Item.wheat});
Dough.iconIndex = ModLoader.addOverride("/gui/items.png", "/Dough.png");
ModLoader.addName(Dough, "Dough");
ModLoader.addRecipe(new ItemStack(Dough, 3), new Object [] {" #W", Character.valueOf('#'), Flour, Character.valueOf('W'), Item.bucketWater});
Cheese.iconIndex = ModLoader.addOverride("/gui/items.png", "/Cheese.png");
ModLoader.addName(Cheese, "Cheese");
ModLoader.addRecipe(new ItemStack(Cheese, 2), new Object [] {"MM ", Character.valueOf('M'), Item.bucketMilk});
Pepperoni.iconIndex = ModLoader.addOverride("/gui/items.png", "/Pepperoni.png");
ModLoader.addName(Pepperoni, "Pepperoni");
ModLoader.addRecipe(new ItemStack(Pepperoni, 4), new Object [] {"PPP", Character.valueOf('P'), Item.porkCooked});
Tomato.iconIndex = ModLoader.addOverride("/gui/items.png", "/Tomato.png");
ModLoader.addName(Tomato, "Tomato");
ModLoader.addRecipe(new ItemStack(Tomato, 1), new Object [] {" R ", "RAR", " R ", Character.valueOf('A'), Item.appleRed, Character.valueOf('R'), Item.redstone});
Pizza.iconIndex = ModLoader.addOverride("/gui/items.png", "/Pizza.png");
ModLoader.addName(Pizza, "Pizza");
ModLoader.addRecipe(new ItemStack(Pizza, 1), new Object [] {"PPP", "CTC", "DDD", Character.valueOf('P'), Pepperoni, Character.valueOf('C'), Cheese, Character.valueOf('T'), Tomato, Character.valueOf('D'), Dough});
ModLoader.registerEntityID(ZombieSprinter.class, "ZombieSprinter", ModLoader.getUniqueEntityId());
ModLoader.addSpawn(ZombieSprinter.class, 12, 14, 18, EnumCreatureType.monster);
ModLoader.registerEntityID(ZombieJugger.class, "ZombieJugger", ModLoader.getUniqueEntityId());
ModLoader.addSpawn(ZombieJugger.class, 12, 14, 18, EnumCreatureType.monster);
ModLoader.registerEntityID(ZombieStrong.class, "ZombieStrong", ModLoader.getUniqueEntityId());
ModLoader.addSpawn(ZombieStrong.class, 12, 14, 18, EnumCreatureType.monster);
ModLoader.registerEntityID(ZombieInvisible.class, "ZombieInvisible", ModLoader.getUniqueEntityId());
ModLoader.addSpawn(ZombieInvisible.class, 12, 14, 18, EnumCreatureType.monster);
ModLoader.registerEntityID(EntityHunter.class, "Hunter", ModLoader.getUniqueEntityId());
ModLoader.addSpawn(EntityHunter.class, 12, 14, 18, EnumCreatureType.monster);
ModLoader.registerEntityID(EntityFarmer.class, "Farmer", ModLoader.getUniqueEntityId());
ModLoader.addSpawn(EntityFarmer.class, 18, 18, 20, EnumCreatureType.creature);
}
public void addRenderer(Map map)
{
map.put(ZombieSprinter.class, new RenderBiped(new ModelBiped(), 0.5F));
map.put(ZombieJugger.class, new RenderBiped(new ModelBiped(), 0.5F));
map.put(ZombieStrong.class, new RenderBiped(new ModelBiped(), 0.5F));
map.put(ZombieInvisible.class, new RenderBiped(new ModelBiped(), 0.5F));
map.put(EntityHunter.class, new RenderHunter(new ModelHunter(), 0.5F));
map.put(EntityFarmer.class, new RenderBiped(new ModelBiped(), 0.5F));
}
public String getVersion()
{
return "1.2.5";
}
}
package net.minecraft.src;
import java.util.Random;
public class mod_MoreItems extends BaseMod
{
public static final Block TitaniumOre = new BlockTitaniumOre(271, 0).setBlockName("TitaniumOre").setHardness(10F).setResistance(8F);
public static final Block TitaniumBlock = new BlockTitaniumBlock(272, 0).setBlockName("TitaniumBlock").setHardness(5F).setResistance(8F).setLightValue(0.5F);
public static final Block CopperOre = new BlockCopperOre(273, 0).setBlockName("CopperOre").setHardness(2F).setResistance(4F);
public static final Block CopperBlock = new BlockCopperBlock(274, 0).setBlockName("CopperBlock").setHardness(2F).setResistance(4F).setLightValue(0.5F);
public static final Item TitaniumHelmet;
public static final Item TitaniumChest;
public static final Item TitaniumLegs;
public static final Item TitaniumBoots;
public static final Item DragonBoneHelmet;
public static final Item DragonBoneChest;
public static final Item DragonBoneLegs;
public static final Item DragonBoneBoots;
public static Item TitaniumSword;
public static Item TitaniumAxe;
public static Item TitaniumSpade;
public static Item TitaniumPickaxe;
public static Item TitaniumHoe;
public static Item CopperSword;
public static Item CopperAxe;
public static Item CopperSpade;
public static Item CopperPickaxe;
public static Item CopperHoe;
public static Item SteelSword;
public static Item SteelAxe;
public static Item SteelSpade;
public static Item SteelPickaxe;
public static Item SteelHoe;
public static Item ObsidianSword;
public static Item ObsidianAxe;
public static Item ObsidianSpade;
public static Item ObsidianPickaxe;
public static Item ObsidianHoe;
public static final Item CrackedDragonBone = new Item(308).setItemName("CrackedDragonBone");
public static final Item DragonBone = new Item(282).setItemName("DragonBone");
public static final Item SteelIngot = new Item(283).setItemName("SteelIngot");
public static final Item TitaniumIngot = new Item(275).setItemName("TitaniumIngot");
public static final Item CopperIngot = new Item(276).setItemName("CopperIngot");
static
{
TitaniumHelmet = (new ItemArmor(277, EnumArmorMaterial.TITANIUM, 3, 0)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/TitaniumHelmet.png")).setItemName("TitaniumHelmet");
TitaniumChest = (new ItemArmor(278, EnumArmorMaterial.TITANIUM, 3, 1)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/TitaniumChest.png")).setItemName("TitaniumChest");
TitaniumLegs = (new ItemArmor(279, EnumArmorMaterial.TITANIUM, 3, 2)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/TitaniumLegs.png")).setItemName("TitaniumLegs");
TitaniumBoots = (new ItemArmor(280, EnumArmorMaterial.TITANIUM, 3, 3)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/TitaniumBoots.png")).setItemName("TitaniumBoots");
DragonBoneHelmet = (new ItemArmor(284, EnumArmorMaterial.DRAGONBONE, 3, 0)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/DragonBoneHelmet.png")).setItemName("DragonBoneHelmet");
DragonBoneChest = (new ItemArmor(285, EnumArmorMaterial.DRAGONBONE, 3, 1)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/DragonBoneChest.png")).setItemName("DragonBoneChest");
DragonBoneLegs = (new ItemArmor(286, EnumArmorMaterial.DRAGONBONE, 3, 2)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/DragonBoneLegs.png")).setItemName("DragonBoneLegs");
DragonBoneBoots = (new ItemArmor(287, EnumArmorMaterial.DRAGONBONE, 3, 3)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/DragonBoneBoots.png")).setItemName("DragonBoneBoots");
TitaniumSword = (new ItemTitaniumSword(288, EnumTitaniumToolMaterial.TITANIUM)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/TitaniumSword.png")).setItemName("TitaniumSword");
TitaniumAxe = (new ItemTitaniumAxe(289, EnumTitaniumToolMaterial.TITANIUM)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/TitaniumAxe.png")).setItemName("TitaniumAxe");
TitaniumSpade = (new ItemTitaniumSpade(290, EnumTitaniumToolMaterial.TITANIUM)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/TitaniumSpade.png")).setItemName("TitaniumSpade");
TitaniumPickaxe = (new ItemTitaniumPickaxe(291, EnumTitaniumToolMaterial.TITANIUM)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/TitaniumPickaxe.png")).setItemName("TitaniumPickaxe");
TitaniumHoe = (new ItemTitaniumHoe(292, EnumTitaniumToolMaterial.TITANIUM)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/TitaniumHoe.png")).setItemName("TitaniumHoe");
CopperSword = (new ItemCopperSword(293, EnumTitaniumToolMaterial.COPPER)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/CopperSword.png")).setItemName("CopperSword");
CopperAxe = (new ItemCopperAxe(294, EnumTitaniumToolMaterial.COPPER)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/CopperAxe.png")).setItemName("CopperAxe");
CopperSpade = (new ItemCopperSpade(295, EnumTitaniumToolMaterial.COPPER)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/CopperSpade.png")).setItemName("CopperSpade");
CopperPickaxe = (new ItemCopperPickaxe(296, EnumTitaniumToolMaterial.COPPER)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/CopperPickaxe.png")).setItemName("CopperPickaxe");
CopperHoe = (new ItemCopperHoe(297, EnumTitaniumToolMaterial.COPPER)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/CopperHoe.png")).setItemName("CopperHoe");
SteelSword = (new ItemSteelSword(298, EnumTitaniumToolMaterial.STEEL)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/SteelSword.png")).setItemName("SteelSword");
SteelAxe = (new ItemSteelAxe(299, EnumTitaniumToolMaterial.STEEL)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/SteelAxe.png")).setItemName("SteelAxe");
SteelSpade = (new ItemSteelSpade(300, EnumTitaniumToolMaterial.STEEL)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/SteelSpade.png")).setItemName("SteelSpade");
SteelPickaxe = (new ItemSteelPickaxe(301, EnumTitaniumToolMaterial.STEEL)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/SteelPickaxe.png")).setItemName("SteelPickaxe");
SteelHoe = (new ItemSteelHoe(302, EnumTitaniumToolMaterial.STEEL)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/SteelHoe.png")).setItemName("SteelHoe");
ObsidianSword = (new ItemObsidianSword(303, EnumTitaniumToolMaterial.OBSIDIAN)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/ObsidianSword.png")).setItemName("ObsidianSword");
ObsidianAxe = (new ItemObsidianAxe(304, EnumTitaniumToolMaterial.OBSIDIAN)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/ObsidianAxe.png")).setItemName("ObsidianAxe");
ObsidianSpade = (new ItemObsidianSpade(305, EnumTitaniumToolMaterial.OBSIDIAN)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/ObsidianSpade.png")).setItemName("ObsidianSpade");
ObsidianPickaxe = (new ItemObsidianPickaxe(306, EnumTitaniumToolMaterial.OBSIDIAN)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/ObsidianPickaxe.png")).setItemName("ObsidianPickaxe");
ObsidianHoe = (new ItemObsidianHoe(307, EnumTitaniumToolMaterial.OBSIDIAN)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/ObsidianHoe.png")).setItemName("ObsidianHoe");
}
public mod_MoreItems()
{
ModLoader.addName(TitaniumHelmet, "TitaniumHelmet");
ModLoader.addName(TitaniumChest, "TitaniumChest");
ModLoader.addName(TitaniumLegs, "TitaniumLegs");
ModLoader.addName(TitaniumBoots, "TitaniumBoots");
ModLoader.addArmor("titanium");
ModLoader.addRecipe(new ItemStack(TitaniumHelmet, 1), new Object [] {"###", "# #", Character.valueOf('#'), TitaniumIngot});
ModLoader.addRecipe(new ItemStack(TitaniumChest, 1), new Object [] {"# #", "###", "###", Character.valueOf('#'), TitaniumIngot});
ModLoader.addRecipe(new ItemStack(TitaniumLegs, 1), new Object [] {"###", "# #", "# #", Character.valueOf('#'), TitaniumIngot});
ModLoader.addRecipe(new ItemStack(TitaniumBoots, 1), new Object [] {"# #", "# #", Character.valueOf('#'), TitaniumIngot});
ModLoader.addName(DragonBoneHelmet, "DragonBoneHelmet");
ModLoader.addName(DragonBoneChest, "DragonBoneChest");
ModLoader.addName(DragonBoneLegs, "DragonBoneLegs");
ModLoader.addName(DragonBoneBoots, "DragonBoneBoots");
ModLoader.addArmor("dragonbone");
ModLoader.addRecipe(new ItemStack(DragonBoneHelmet, 1), new Object [] {"###", "# #", Character.valueOf('#'), DragonBone});
ModLoader.addRecipe(new ItemStack(DragonBoneChest, 1), new Object [] {"# #", "###", "###", Character.valueOf('#'), DragonBone});
ModLoader.addRecipe(new ItemStack(DragonBoneLegs, 1), new Object [] {"###", "# #", "# #", Character.valueOf('#'), DragonBone});
ModLoader.addRecipe(new ItemStack(DragonBoneBoots, 1), new Object [] {"# #", "# #", Character.valueOf('#'), DragonBone});
ModLoader.addName(TitaniumSword, "TitaniumSword");
ModLoader.addName(TitaniumAxe, "TitaniumAxe");
ModLoader.addName(TitaniumSpade, "TitaniumSpade");
ModLoader.addName(TitaniumPickaxe, "TitaniumPickaxe");
ModLoader.addName(TitaniumHoe, "TitaniumHoe");
ModLoader.addName(CopperSword, "CopperSword");
ModLoader.addName(CopperAxe, "CopperAxe");
ModLoader.addName(CopperSpade, "CopperSpade");
ModLoader.addName(CopperPickaxe, "CopperPickaxe");
ModLoader.addName(CopperHoe, "CopperHoe");
ModLoader.addName(SteelSword, "SteelSword");
ModLoader.addName(SteelAxe, "SteelAxe");
ModLoader.addName(SteelSpade, "SteelSpade");
ModLoader.addName(SteelPickaxe, "SteelPickaxe");
ModLoader.addName(SteelHoe, "SteelHoe");
ModLoader.addName(ObsidianSword, "ObsidianSword");
ModLoader.addName(ObsidianAxe, "ObsidianAxe");
ModLoader.addName(ObsidianSpade, "ObsidianSpade");
ModLoader.addName(ObsidianPickaxe, "ObsidianPickaxe");
ModLoader.addName(ObsidianHoe, "ObsidianHoe");
ModLoader.addRecipe(new ItemStack(TitaniumSword, 1), new Object [] {" # ", " # ", " @ ", Character.valueOf('#'), TitaniumIngot, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(TitaniumAxe, 1), new Object [] {"## ", "#@ ", " @ ", Character.valueOf('#'), TitaniumIngot, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(TitaniumSpade, 1), new Object [] {" # ", " @ ", " @ ", Character.valueOf('#'), TitaniumIngot, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(TitaniumPickaxe, 1), new Object [] {"###", " @ ", " @ ", Character.valueOf('#'), TitaniumIngot, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(TitaniumHoe, 1), new Object [] {"## ", " @ ", " @ ", Character.valueOf('#'), TitaniumIngot, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(CopperSword, 1), new Object [] {" # ", " # ", " @ ", Character.valueOf('#'), CopperIngot, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(CopperAxe, 1), new Object [] {"## ", "#@ ", " @ ", Character.valueOf('#'), CopperIngot, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(CopperSpade, 1), new Object [] {" # ", " @ ", " @ ", Character.valueOf('#'), CopperIngot, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(CopperPickaxe, 1), new Object [] {"###", " @ ", " @ ", Character.valueOf('#'), CopperIngot, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(CopperHoe, 1), new Object [] {"## ", " @ ", " @ ", Character.valueOf('#'), CopperIngot, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(SteelSword, 1), new Object [] {" # ", " # ", " @ ", Character.valueOf('#'), SteelIngot, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(SteelAxe, 1), new Object [] {"## ", "#@ ", " @ ", Character.valueOf('#'), SteelIngot, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(SteelSpade, 1), new Object [] {" # ", " @ ", " @ ", Character.valueOf('#'), SteelIngot, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(SteelPickaxe, 1), new Object [] {"###", " @ ", " @ ", Character.valueOf('#'), SteelIngot, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(SteelHoe, 1), new Object [] {"## ", " @ ", " @ ", Character.valueOf('#'), SteelIngot, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(ObsidianSword, 1), new Object [] {" # ", " # ", " @ ", Character.valueOf('#'), Block.obsidian.blockID, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(ObsidianAxe, 1), new Object [] {"## ", "#@ ", " @ ", Character.valueOf('#'), Block.obsidian.blockID, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(ObsidianSpade, 1), new Object [] {" # ", " @ ", " @ ", Character.valueOf('#'), Block.obsidian.blockID, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(ObsidianPickaxe, 1), new Object [] {"###", " @ ", " @ ", Character.valueOf('#'), Block.obsidian.blockID, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(ObsidianHoe, 1), new Object [] {"## ", " @ ", " @ ", Character.valueOf('#'), Block.obsidian.blockID, Character.valueOf('#'), Item.stick});
}
public void load()
{
CrackedDragonBone.iconIndex = ModLoader.addOverride("/gui/items.png", "/CrackedDragonBone.png");
ModLoader.addName(CrackedDragonBone, "CrackedDragonBone");
ModLoader.addSmelting(Block.dragonEgg.blockID, new ItemStack(CrackedDragonBone, 8));
DragonBone.iconIndex = ModLoader.addOverride("/gui/items.png", "/DragonBone.png");
ModLoader.addName(DragonBone, "DragonBone");
ModLoader.addSmelting(CrackedDragonBone.shiftedIndex, new ItemStack(DragonBone, 3));
TitaniumOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/TitaniumOre.png");
ModLoader.registerBlock(TitaniumOre);
ModLoader.addName(TitaniumOre, "TitaniumOre");
TitaniumBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/TitaniumBlock.png");
ModLoader.registerBlock(TitaniumBlock);
ModLoader.addName(TitaniumBlock, "TitaniumBlock");
ModLoader.addRecipe(new ItemStack(TitaniumBlock, 1), new Object [] {"###", "###", "###", Character.valueOf('#'), TitaniumIngot});
CopperOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/CopperOre.png");
ModLoader.registerBlock(CopperOre);
ModLoader.addName(CopperOre, "CopperOre");
CopperBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/CopperBlock.png");
ModLoader.registerBlock(CopperBlock);
ModLoader.addName(CopperBlock, "CopperBlock");
ModLoader.addRecipe(new ItemStack(CopperBlock, 1), new Object [] {"###", "###", "###", Character.valueOf('#'), CopperIngot});
SteelIngot.iconIndex = ModLoader.addOverride("/gui/items.png", "/SteelIngot.png");
ModLoader.addName(TitaniumIngot, "TitaniumIngot");
ModLoader.addRecipe(new ItemStack(SteelIngot, 1), new Object [] {" @ ", "@#@", " @ ", Character.valueOf('#'), Item.ingotIron, Character.valueOf('@'), Item.coal});
TitaniumIngot.iconIndex = ModLoader.addOverride("/gui/items.png", "/TitanumIngot.png");
ModLoader.addName(TitaniumIngot, "TitaniumIngot");
ModLoader.addSmelting(TitaniumOre.blockID, new ItemStack(TitaniumIngot, 1));
CopperIngot.iconIndex = ModLoader.addOverride("/gui/items.png", "/CopperIngot.png");
ModLoader.addName(CopperIngot, "CopperIngot");
ModLoader.addSmelting(CopperOre.blockID, new ItemStack(CopperIngot, 1));
}
public void generateSurface(World world, Random random, int chunkX, int chunkZ)
{
for(int i = 0; i < 3; i++)
{
int randPosX = chunkX + random.nextInt(16);
int randPosY = random.nextInt(8);
int randPosZ = chunkZ + random.nextInt(16);
(new WorldGenMinable(TitaniumOre.blockID, 5)).generate(world, random, randPosX, randPosY, randPosZ);
}
for(int j = 0; j < 3; j++)
{
int randPosX = chunkX + random.nextInt(16);
int randPosY = random.nextInt(64);
int randPosZ = chunkZ + random.nextInt(16);
(new WorldGenMinable(CopperOre.blockID, 20)).generate(world, random, randPosX, randPosY, randPosZ);
}
}
public String getVersion()
{
return "1.2.5";
}
}
I tried to get a Sword, it works but its not enchantable. I read that i need to extends ItemSword and not Item. I did and geht an error:
The constructor ItemSword(int) is undefined.
I hope you can help me.
My Code:
package net.minecraft.src;
import net.minecraft.src.forge.*;
public class DragonSword extends ItemSword implements ITextureProvider
{
private int weaponDamage;
private final ModMaterials toolMaterial;
public DragonSword(int par1, ModMaterials par2EnumToolMaterial)
{
super(par1);
}
}
--- BEGIN ERROR REPORT e74c8929 --------
Generated 4/23/12 4:17 PM
Minecraft: Minecraft 1.2.5
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_03, Oracle Corporation
VM: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: AMD Radeon HD 6570 version 4.2.11554 Compatibility Profile Context, ATI Technologies Inc.
java.lang.Error: Unresolved compilation problems:
UraniumOre cannot be resolved or is not a field
UraniumIngot cannot be resolved or is not a field
at net.minecraft.src.mod_UraniumOre.load(mod_UraniumOre.java:15)
at net.minecraft.src.ModLoader.init(ModLoader.java:856)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:157)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:85)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:12)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:424)
at net.minecraft.client.Minecraft.run(Minecraft.java:786)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT e4b2e856 ----------
Merge those two mod_ classes into one. Then it will make it easier for you to reference to each instance as you don't need to put mod_**.UraniumIngot, etc.
--- BEGIN ERROR REPORT 33ed338b --------
Generated 4/23/12 6:04 PM
Minecraft: Minecraft 1.2.5
OS: Windows XP (x86) version 5.1
Java: 1.7.0_02, Oracle Corporation
VM: Java HotSpot™ Client VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Intel 845G version 1.3.0 - Build 4.14.10.4342, Intel
java.lang.ArrayIndexOutOfBoundsException: 271
at net.minecraft.src.ModLoader.initStats(ModLoader.java:905)
at net.minecraft.src.ModLoader.init(ModLoader.java:878)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:157)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:85)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:12)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:424)
at net.minecraft.client.Minecraft.run(Minecraft.java:786)
at java.lang.Thread.run(Thread.java:722)
--- END ERROR REPORT 494849f2 ----------
CodeHere:
package net.minecraft.src;
import java.util.Map;
import java.util.Random;
public class mod_MoreMobs extends BaseMod
{
public static final Item RiceGrain = new ItemFood(257, 1, 1F, false).setItemName("RiceGrain");
public static final Item RiceBundle = new ItemFood(258, 3, 1F, false).setItemName("RiceBundle");
public static final Item FriedRice = new ItemFood(259, 8, 1F, false).setItemName("FriedRice");
public static final Item BreadSlice = new ItemFood(260, 4, 1F, false).setItemName("BreadSlice");
public static final Item Bun = new ItemFood(261, 4, 1F, false).setItemName("Bun");
public static final Item HotDog = new ItemFood(262, 8, 1F, false).setItemName("HotDog");
public static final Item Burger = new ItemFood(263, 8, 1F, false).setItemName("Burger");
public static final Item Sandwich = new ItemFood(264, 6, 1F, false).setItemName("Sandwich");
public static final Item Flour = new ItemFood(265, 2, 1F, false).setItemName("Flour");
public static final Item Dough = new ItemFood(266, 2, 1F, false).setItemName("Dough");
public static final Item Cheese = new ItemFood(267, 2, 1F, false).setItemName("Cheese");
public static final Item Pepperoni = new ItemFood(268, 2, 1F, false).setItemName("Pepperoni");
public static final Item Tomato = new ItemFood(269, 2, 1F, false).setItemName("Tomato");
public static final Item Pizza = new ItemFood(270, 10, 1F, false).setItemName("Pizza");
public void load()
{
RiceGrain.iconIndex = ModLoader.addOverride("/gui/items.png", "/RiceGrain.png");
ModLoader.addName(RiceGrain, "RiceGrain");
ModLoader.addRecipe(new ItemStack(RiceGrain, 1), new Object [] {"## ", Character.valueOf('#'), Item.wheat});
RiceBundle.iconIndex = ModLoader.addOverride("/gui/items.png", "/RiceBundle.png");
ModLoader.addName(RiceBundle, "RiceBundle");
ModLoader.addRecipe(new ItemStack(RiceBundle, 1), new Object [] {"###", "###", "###", Character.valueOf('#'), RiceGrain});
FriedRice.iconIndex = ModLoader.addOverride("/gui/items.png", "/FriedRice.png");
ModLoader.addName(FriedRice, "FriedRice");
ModLoader.addSmelting(RiceBundle.shiftedIndex, new ItemStack(FriedRice, 1));
BreadSlice.iconIndex = ModLoader.addOverride("/gui/items.png", "/BreadSlice.png");
ModLoader.addName(BreadSlice, "BreadSlice");
ModLoader.addRecipe(new ItemStack(BreadSlice, 2), new Object [] {" # ", Character.valueOf('#'), Item.bread});
Bun.iconIndex = ModLoader.addOverride("/gui/items.png", "/Bun.png");
ModLoader.addName(Bun, "Bun");
ModLoader.addRecipe(new ItemStack(Bun, 2), new Object [] {"###", Character.valueOf('#'), Item.bread});
HotDog.iconIndex = ModLoader.addOverride("/gui/items.png", "/HotDog.png");
ModLoader.addName(HotDog, "HotDog");
ModLoader.addRecipe(new ItemStack(HotDog, 1), new Object [] {"###", "PPP", "###", Character.valueOf('#'), Bun, Character.valueOf('P'), Item.porkCooked});
Burger.iconIndex = ModLoader.addOverride("/gui/items.png", "/Burger.png");
ModLoader.addName(Burger, "Burger");
ModLoader.addRecipe(new ItemStack(Burger, 1), new Object [] {"###", "BBB", "###", Character.valueOf('#'), Bun, Character.valueOf('B'), Item.beefCooked});
Sandwich.iconIndex = ModLoader.addOverride("/gui/items.png", "/Sandwich.png");
ModLoader.addName(Sandwich, "Sandwich");
ModLoader.addRecipe(new ItemStack(Sandwich, 1), new Object [] {" # ", "BBB", " # ", Character.valueOf('#'), BreadSlice, Character.valueOf('B'), Item.beefCooked});
Flour.iconIndex = ModLoader.addOverride("/gui/items.png", "/Flour.png");
ModLoader.addName(Flour, "Flour");
ModLoader.addRecipe(new ItemStack(Flour, 4), new Object [] {" # ", Character.valueOf('#'), Item.wheat});
Dough.iconIndex = ModLoader.addOverride("/gui/items.png", "/Dough.png");
ModLoader.addName(Dough, "Dough");
ModLoader.addRecipe(new ItemStack(Dough, 3), new Object [] {" #W", Character.valueOf('#'), Flour, Character.valueOf('W'), Item.bucketWater});
Cheese.iconIndex = ModLoader.addOverride("/gui/items.png", "/Cheese.png");
ModLoader.addName(Cheese, "Cheese");
ModLoader.addRecipe(new ItemStack(Cheese, 2), new Object [] {"MM ", Character.valueOf('M'), Item.bucketMilk});
Pepperoni.iconIndex = ModLoader.addOverride("/gui/items.png", "/Pepperoni.png");
ModLoader.addName(Pepperoni, "Pepperoni");
ModLoader.addRecipe(new ItemStack(Pepperoni, 4), new Object [] {"PPP", Character.valueOf('P'), Item.porkCooked});
Tomato.iconIndex = ModLoader.addOverride("/gui/items.png", "/Tomato.png");
ModLoader.addName(Tomato, "Tomato");
ModLoader.addRecipe(new ItemStack(Tomato, 1), new Object [] {" R ", "RAR", " R ", Character.valueOf('A'), Item.appleRed, Character.valueOf('R'), Item.redstone});
Pizza.iconIndex = ModLoader.addOverride("/gui/items.png", "/Pizza.png");
ModLoader.addName(Pizza, "Pizza");
ModLoader.addRecipe(new ItemStack(Pizza, 1), new Object [] {"PPP", "CTC", "DDD", Character.valueOf('P'), Pepperoni, Character.valueOf('C'), Cheese, Character.valueOf('T'), Tomato, Character.valueOf('D'), Dough});
ModLoader.registerEntityID(ZombieSprinter.class, "ZombieSprinter", ModLoader.getUniqueEntityId());
ModLoader.addSpawn(ZombieSprinter.class, 12, 14, 18, EnumCreatureType.monster);
ModLoader.registerEntityID(ZombieJugger.class, "ZombieJugger", ModLoader.getUniqueEntityId());
ModLoader.addSpawn(ZombieJugger.class, 12, 14, 18, EnumCreatureType.monster);
ModLoader.registerEntityID(ZombieStrong.class, "ZombieStrong", ModLoader.getUniqueEntityId());
ModLoader.addSpawn(ZombieStrong.class, 12, 14, 18, EnumCreatureType.monster);
ModLoader.registerEntityID(ZombieInvisible.class, "ZombieInvisible", ModLoader.getUniqueEntityId());
ModLoader.addSpawn(ZombieInvisible.class, 12, 14, 18, EnumCreatureType.monster);
ModLoader.registerEntityID(EntityHunter.class, "Hunter", ModLoader.getUniqueEntityId());
ModLoader.addSpawn(EntityHunter.class, 12, 14, 18, EnumCreatureType.monster);
ModLoader.registerEntityID(EntityFarmer.class, "Farmer", ModLoader.getUniqueEntityId());
ModLoader.addSpawn(EntityFarmer.class, 18, 18, 20, EnumCreatureType.creature);
}
public void addRenderer(Map map)
{
map.put(ZombieSprinter.class, new RenderBiped(new ModelBiped(), 0.5F));
map.put(ZombieJugger.class, new RenderBiped(new ModelBiped(), 0.5F));
map.put(ZombieStrong.class, new RenderBiped(new ModelBiped(), 0.5F));
map.put(ZombieInvisible.class, new RenderBiped(new ModelBiped(), 0.5F));
map.put(EntityHunter.class, new RenderHunter(new ModelHunter(), 0.5F));
map.put(EntityFarmer.class, new RenderBiped(new ModelBiped(), 0.5F));
}
public String getVersion()
{
return "1.2.5";
}
}
package net.minecraft.src;
import java.util.Random;
public class mod_MoreItems extends BaseMod
{
public static final Block TitaniumOre = new BlockTitaniumOre(271, 0).setBlockName("TitaniumOre").setHardness(10F).setResistance(8F);
public static final Block TitaniumBlock = new BlockTitaniumBlock(272, 0).setBlockName("TitaniumBlock").setHardness(5F).setResistance(8F).setLightValue(0.5F);
public static final Block CopperOre = new BlockCopperOre(273, 0).setBlockName("CopperOre").setHardness(2F).setResistance(4F);
public static final Block CopperBlock = new BlockCopperBlock(274, 0).setBlockName("CopperBlock").setHardness(2F).setResistance(4F).setLightValue(0.5F);
public static final Item TitaniumHelmet;
public static final Item TitaniumChest;
public static final Item TitaniumLegs;
public static final Item TitaniumBoots;
public static final Item DragonBoneHelmet;
public static final Item DragonBoneChest;
public static final Item DragonBoneLegs;
public static final Item DragonBoneBoots;
public static Item TitaniumSword;
public static Item TitaniumAxe;
public static Item TitaniumSpade;
public static Item TitaniumPickaxe;
public static Item TitaniumHoe;
public static Item CopperSword;
public static Item CopperAxe;
public static Item CopperSpade;
public static Item CopperPickaxe;
public static Item CopperHoe;
public static Item SteelSword;
public static Item SteelAxe;
public static Item SteelSpade;
public static Item SteelPickaxe;
public static Item SteelHoe;
public static Item ObsidianSword;
public static Item ObsidianAxe;
public static Item ObsidianSpade;
public static Item ObsidianPickaxe;
public static Item ObsidianHoe;
public static final Item CrackedDragonBone = new Item(308).setItemName("CrackedDragonBone");
public static final Item DragonBone = new Item(282).setItemName("DragonBone");
public static final Item SteelIngot = new Item(283).setItemName("SteelIngot");
public static final Item TitaniumIngot = new Item(275).setItemName("TitaniumIngot");
public static final Item CopperIngot = new Item(276).setItemName("CopperIngot");
static
{
TitaniumHelmet = (new ItemArmor(277, EnumArmorMaterial.TITANIUM, 3, 0)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/TitaniumHelmet.png")).setItemName("TitaniumHelmet");
TitaniumChest = (new ItemArmor(278, EnumArmorMaterial.TITANIUM, 3, 1)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/TitaniumChest.png")).setItemName("TitaniumChest");
TitaniumLegs = (new ItemArmor(279, EnumArmorMaterial.TITANIUM, 3, 2)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/TitaniumLegs.png")).setItemName("TitaniumLegs");
TitaniumBoots = (new ItemArmor(280, EnumArmorMaterial.TITANIUM, 3, 3)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/TitaniumBoots.png")).setItemName("TitaniumBoots");
DragonBoneHelmet = (new ItemArmor(284, EnumArmorMaterial.DRAGONBONE, 3, 0)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/DragonBoneHelmet.png")).setItemName("DragonBoneHelmet");
DragonBoneChest = (new ItemArmor(285, EnumArmorMaterial.DRAGONBONE, 3, 1)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/DragonBoneChest.png")).setItemName("DragonBoneChest");
DragonBoneLegs = (new ItemArmor(286, EnumArmorMaterial.DRAGONBONE, 3, 2)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/DragonBoneLegs.png")).setItemName("DragonBoneLegs");
DragonBoneBoots = (new ItemArmor(287, EnumArmorMaterial.DRAGONBONE, 3, 3)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/DragonBoneBoots.png")).setItemName("DragonBoneBoots");
TitaniumSword = (new ItemTitaniumSword(288, EnumTitaniumToolMaterial.TITANIUM)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/TitaniumSword.png")).setItemName("TitaniumSword");
TitaniumAxe = (new ItemTitaniumAxe(289, EnumTitaniumToolMaterial.TITANIUM)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/TitaniumAxe.png")).setItemName("TitaniumAxe");
TitaniumSpade = (new ItemTitaniumSpade(290, EnumTitaniumToolMaterial.TITANIUM)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/TitaniumSpade.png")).setItemName("TitaniumSpade");
TitaniumPickaxe = (new ItemTitaniumPickaxe(291, EnumTitaniumToolMaterial.TITANIUM)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/TitaniumPickaxe.png")).setItemName("TitaniumPickaxe");
TitaniumHoe = (new ItemTitaniumHoe(292, EnumTitaniumToolMaterial.TITANIUM)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/TitaniumHoe.png")).setItemName("TitaniumHoe");
CopperSword = (new ItemCopperSword(293, EnumTitaniumToolMaterial.COPPER)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/CopperSword.png")).setItemName("CopperSword");
CopperAxe = (new ItemCopperAxe(294, EnumTitaniumToolMaterial.COPPER)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/CopperAxe.png")).setItemName("CopperAxe");
CopperSpade = (new ItemCopperSpade(295, EnumTitaniumToolMaterial.COPPER)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/CopperSpade.png")).setItemName("CopperSpade");
CopperPickaxe = (new ItemCopperPickaxe(296, EnumTitaniumToolMaterial.COPPER)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/CopperPickaxe.png")).setItemName("CopperPickaxe");
CopperHoe = (new ItemCopperHoe(297, EnumTitaniumToolMaterial.COPPER)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/CopperHoe.png")).setItemName("CopperHoe");
SteelSword = (new ItemSteelSword(298, EnumTitaniumToolMaterial.STEEL)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/SteelSword.png")).setItemName("SteelSword");
SteelAxe = (new ItemSteelAxe(299, EnumTitaniumToolMaterial.STEEL)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/SteelAxe.png")).setItemName("SteelAxe");
SteelSpade = (new ItemSteelSpade(300, EnumTitaniumToolMaterial.STEEL)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/SteelSpade.png")).setItemName("SteelSpade");
SteelPickaxe = (new ItemSteelPickaxe(301, EnumTitaniumToolMaterial.STEEL)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/SteelPickaxe.png")).setItemName("SteelPickaxe");
SteelHoe = (new ItemSteelHoe(302, EnumTitaniumToolMaterial.STEEL)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/SteelHoe.png")).setItemName("SteelHoe");
ObsidianSword = (new ItemObsidianSword(303, EnumTitaniumToolMaterial.OBSIDIAN)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/ObsidianSword.png")).setItemName("ObsidianSword");
ObsidianAxe = (new ItemObsidianAxe(304, EnumTitaniumToolMaterial.OBSIDIAN)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/ObsidianAxe.png")).setItemName("ObsidianAxe");
ObsidianSpade = (new ItemObsidianSpade(305, EnumTitaniumToolMaterial.OBSIDIAN)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/ObsidianSpade.png")).setItemName("ObsidianSpade");
ObsidianPickaxe = (new ItemObsidianPickaxe(306, EnumTitaniumToolMaterial.OBSIDIAN)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/ObsidianPickaxe.png")).setItemName("ObsidianPickaxe");
ObsidianHoe = (new ItemObsidianHoe(307, EnumTitaniumToolMaterial.OBSIDIAN)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/ObsidianHoe.png")).setItemName("ObsidianHoe");
}
public mod_MoreItems()
{
ModLoader.addName(TitaniumHelmet, "TitaniumHelmet");
ModLoader.addName(TitaniumChest, "TitaniumChest");
ModLoader.addName(TitaniumLegs, "TitaniumLegs");
ModLoader.addName(TitaniumBoots, "TitaniumBoots");
ModLoader.addArmor("titanium");
ModLoader.addRecipe(new ItemStack(TitaniumHelmet, 1), new Object [] {"###", "# #", Character.valueOf('#'), TitaniumIngot});
ModLoader.addRecipe(new ItemStack(TitaniumChest, 1), new Object [] {"# #", "###", "###", Character.valueOf('#'), TitaniumIngot});
ModLoader.addRecipe(new ItemStack(TitaniumLegs, 1), new Object [] {"###", "# #", "# #", Character.valueOf('#'), TitaniumIngot});
ModLoader.addRecipe(new ItemStack(TitaniumBoots, 1), new Object [] {"# #", "# #", Character.valueOf('#'), TitaniumIngot});
ModLoader.addName(DragonBoneHelmet, "DragonBoneHelmet");
ModLoader.addName(DragonBoneChest, "DragonBoneChest");
ModLoader.addName(DragonBoneLegs, "DragonBoneLegs");
ModLoader.addName(DragonBoneBoots, "DragonBoneBoots");
ModLoader.addArmor("dragonbone");
ModLoader.addRecipe(new ItemStack(DragonBoneHelmet, 1), new Object [] {"###", "# #", Character.valueOf('#'), DragonBone});
ModLoader.addRecipe(new ItemStack(DragonBoneChest, 1), new Object [] {"# #", "###", "###", Character.valueOf('#'), DragonBone});
ModLoader.addRecipe(new ItemStack(DragonBoneLegs, 1), new Object [] {"###", "# #", "# #", Character.valueOf('#'), DragonBone});
ModLoader.addRecipe(new ItemStack(DragonBoneBoots, 1), new Object [] {"# #", "# #", Character.valueOf('#'), DragonBone});
ModLoader.addName(TitaniumSword, "TitaniumSword");
ModLoader.addName(TitaniumAxe, "TitaniumAxe");
ModLoader.addName(TitaniumSpade, "TitaniumSpade");
ModLoader.addName(TitaniumPickaxe, "TitaniumPickaxe");
ModLoader.addName(TitaniumHoe, "TitaniumHoe");
ModLoader.addName(CopperSword, "CopperSword");
ModLoader.addName(CopperAxe, "CopperAxe");
ModLoader.addName(CopperSpade, "CopperSpade");
ModLoader.addName(CopperPickaxe, "CopperPickaxe");
ModLoader.addName(CopperHoe, "CopperHoe");
ModLoader.addName(SteelSword, "SteelSword");
ModLoader.addName(SteelAxe, "SteelAxe");
ModLoader.addName(SteelSpade, "SteelSpade");
ModLoader.addName(SteelPickaxe, "SteelPickaxe");
ModLoader.addName(SteelHoe, "SteelHoe");
ModLoader.addName(ObsidianSword, "ObsidianSword");
ModLoader.addName(ObsidianAxe, "ObsidianAxe");
ModLoader.addName(ObsidianSpade, "ObsidianSpade");
ModLoader.addName(ObsidianPickaxe, "ObsidianPickaxe");
ModLoader.addName(ObsidianHoe, "ObsidianHoe");
ModLoader.addRecipe(new ItemStack(TitaniumSword, 1), new Object [] {" # ", " # ", " @ ", Character.valueOf('#'), TitaniumIngot, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(TitaniumAxe, 1), new Object [] {"## ", "#@ ", " @ ", Character.valueOf('#'), TitaniumIngot, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(TitaniumSpade, 1), new Object [] {" # ", " @ ", " @ ", Character.valueOf('#'), TitaniumIngot, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(TitaniumPickaxe, 1), new Object [] {"###", " @ ", " @ ", Character.valueOf('#'), TitaniumIngot, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(TitaniumHoe, 1), new Object [] {"## ", " @ ", " @ ", Character.valueOf('#'), TitaniumIngot, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(CopperSword, 1), new Object [] {" # ", " # ", " @ ", Character.valueOf('#'), CopperIngot, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(CopperAxe, 1), new Object [] {"## ", "#@ ", " @ ", Character.valueOf('#'), CopperIngot, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(CopperSpade, 1), new Object [] {" # ", " @ ", " @ ", Character.valueOf('#'), CopperIngot, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(CopperPickaxe, 1), new Object [] {"###", " @ ", " @ ", Character.valueOf('#'), CopperIngot, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(CopperHoe, 1), new Object [] {"## ", " @ ", " @ ", Character.valueOf('#'), CopperIngot, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(SteelSword, 1), new Object [] {" # ", " # ", " @ ", Character.valueOf('#'), SteelIngot, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(SteelAxe, 1), new Object [] {"## ", "#@ ", " @ ", Character.valueOf('#'), SteelIngot, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(SteelSpade, 1), new Object [] {" # ", " @ ", " @ ", Character.valueOf('#'), SteelIngot, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(SteelPickaxe, 1), new Object [] {"###", " @ ", " @ ", Character.valueOf('#'), SteelIngot, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(SteelHoe, 1), new Object [] {"## ", " @ ", " @ ", Character.valueOf('#'), SteelIngot, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(ObsidianSword, 1), new Object [] {" # ", " # ", " @ ", Character.valueOf('#'), Block.obsidian.blockID, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(ObsidianAxe, 1), new Object [] {"## ", "#@ ", " @ ", Character.valueOf('#'), Block.obsidian.blockID, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(ObsidianSpade, 1), new Object [] {" # ", " @ ", " @ ", Character.valueOf('#'), Block.obsidian.blockID, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(ObsidianPickaxe, 1), new Object [] {"###", " @ ", " @ ", Character.valueOf('#'), Block.obsidian.blockID, Character.valueOf('#'), Item.stick});
ModLoader.addRecipe(new ItemStack(ObsidianHoe, 1), new Object [] {"## ", " @ ", " @ ", Character.valueOf('#'), Block.obsidian.blockID, Character.valueOf('#'), Item.stick});
}
public void load()
{
CrackedDragonBone.iconIndex = ModLoader.addOverride("/gui/items.png", "/CrackedDragonBone.png");
ModLoader.addName(CrackedDragonBone, "CrackedDragonBone");
ModLoader.addSmelting(Block.dragonEgg.blockID, new ItemStack(CrackedDragonBone, 8));
DragonBone.iconIndex = ModLoader.addOverride("/gui/items.png", "/DragonBone.png");
ModLoader.addName(DragonBone, "DragonBone");
ModLoader.addSmelting(CrackedDragonBone.shiftedIndex, new ItemStack(DragonBone, 3));
TitaniumOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/TitaniumOre.png");
ModLoader.registerBlock(TitaniumOre);
ModLoader.addName(TitaniumOre, "TitaniumOre");
TitaniumBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/TitaniumBlock.png");
ModLoader.registerBlock(TitaniumBlock);
ModLoader.addName(TitaniumBlock, "TitaniumBlock");
ModLoader.addRecipe(new ItemStack(TitaniumBlock, 1), new Object [] {"###", "###", "###", Character.valueOf('#'), TitaniumIngot});
CopperOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/CopperOre.png");
ModLoader.registerBlock(CopperOre);
ModLoader.addName(CopperOre, "CopperOre");
CopperBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/CopperBlock.png");
ModLoader.registerBlock(CopperBlock);
ModLoader.addName(CopperBlock, "CopperBlock");
ModLoader.addRecipe(new ItemStack(CopperBlock, 1), new Object [] {"###", "###", "###", Character.valueOf('#'), CopperIngot});
SteelIngot.iconIndex = ModLoader.addOverride("/gui/items.png", "/SteelIngot.png");
ModLoader.addName(TitaniumIngot, "TitaniumIngot");
ModLoader.addRecipe(new ItemStack(SteelIngot, 1), new Object [] {" @ ", "@#@", " @ ", Character.valueOf('#'), Item.ingotIron, Character.valueOf('@'), Item.coal});
TitaniumIngot.iconIndex = ModLoader.addOverride("/gui/items.png", "/TitanumIngot.png");
ModLoader.addName(TitaniumIngot, "TitaniumIngot");
ModLoader.addSmelting(TitaniumOre.blockID, new ItemStack(TitaniumIngot, 1));
CopperIngot.iconIndex = ModLoader.addOverride("/gui/items.png", "/CopperIngot.png");
ModLoader.addName(CopperIngot, "CopperIngot");
ModLoader.addSmelting(CopperOre.blockID, new ItemStack(CopperIngot, 1));
}
public void generateSurface(World world, Random random, int chunkX, int chunkZ)
{
for(int i = 0; i < 3; i++)
{
int randPosX = chunkX + random.nextInt(16);
int randPosY = random.nextInt(8);
int randPosZ = chunkZ + random.nextInt(16);
(new WorldGenMinable(TitaniumOre.blockID, 5)).generate(world, random, randPosX, randPosY, randPosZ);
}
for(int j = 0; j < 3; j++)
{
int randPosX = chunkX + random.nextInt(16);
int randPosY = random.nextInt(64);
int randPosZ = chunkZ + random.nextInt(16);
(new WorldGenMinable(CopperOre.blockID, 20)).generate(world, random, randPosX, randPosY, randPosZ);
}
}
public String getVersion()
{
return "1.2.5";
}
}
You have a block id too high. They must be below 256. Please remember your spoilers when posting code, especially long code like that.
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
You'll have to take your classes out of src manually, run cleanup.bat/sh the decompile again. Once you've done that just add your classes back into src. After that you can recompile and reobfuscate as normal.
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
I need help. Im getting errors but i dont know why.
package net.minecraft.src;
public class mod_hardeneddiamond extends BaseMod
{
public static final Item ebar = new ItemFood(5001, 12, 2f, false).setItemName("ebar");
public static final Item chickensandwhich = new ItemFood(5000, 14, 1f, false).setItemName("chickensandwhich");
public static final Item pulledporksandwich = new ItemFood(4999, 20, 2f, false).setItemName("pulledporksandwich");
public static final Item burger = new ItemFood(4998, 20, 2f, false).setItemName("burger");
public static final Item hardeneddiamond = new hardeneddiamond(4997).setItemName("hardeneddiamond");
public static final Item cs = new cs(4996).setItemName("cs");
public static final Item dhwater = new dhwater(4995).setItemName("dhwater");
public static final Item hdc = new hdc(4994).setItemName("hdc");
public static final Item hi = new hi(4993).setItemName("hi");
public static final Item stick2 = new stick2(4992).setItemName("stick2");
public static final Item ws = new ws(4991).setItemName("ws");
public static final Item cc = new Item(4990).setItemName("cc");
public static final Item uf = new Item(4989).setItemName("uf");
public static final Item hg = new Item(4988).setItemName("hg");
public static final Item hs = new Item(4987).setItemName("hs");
public static final Item s = new Item(4986).setItemName("s");
public static final Item crystal = new Item(4985).setItemName("crystal");
public static final Item explosium = new Item(4984).setItemName("explosium");
public static final Item hardenedexplosium = new Item(4983).setItemName("hardenedexplosium");
public static final Item lifebar = new Item(4982).setItemName("lifebar");
public static final Item hardenedlifebar = new Item(4981).setItemName("hardenedlifebar");
public static final Item plasma = new Item(4980).setItemName("plasma");
public static final Item diamonddust = new Item(4979).setItemName("diamonddust");
public static final Item hdPickaxe = (new hdItemPickaxe (1500, hdtoolmaterial.hd)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/hdpickaxe.png")).setItemName("hdpickaxe");
public static final Item hdSpade = (new hdItemSpade (1501, hdtoolmaterial.hd)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/hdshovel.png")).setItemName("hdshovel");
public static final Item hdSword = (new hdItemSword (1502, hdtoolmaterial.hd)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/hdsword.png")).setItemName("hdsword");
public static final Item hdAxe = (new hdItemAxe (1503, hdtoolmaterial.hd)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/hdaxe.png")).setItemName("hdaxe");
public static final Item hiPickaxe = (new hdItemPickaxe (1504, hdtoolmaterial.hi)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/hipickaxe.png")).setItemName("hipickaxe");
public static final Item hiSpade = (new hdItemSpade (1505, hdtoolmaterial.hi)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/hishovel.png")).setItemName("hishovel");
public static final Item hiSword = (new hdItemSword (1506, hdtoolmaterial.hi)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/hisword.png")).setItemName("hisword");
public static final Item hiAxe = (new hdItemAxe (1507, hdtoolmaterial.hi)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/hiaxe.png")).setItemName("hiaxe");
public static final Item hgPickaxe = (new hdItemPickaxe (1508, hdtoolmaterial.hg)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/hgpickaxe.png")).setItemName("hgpickaxe");
public static final Item hgSpade = (new hdItemSpade (1509, hdtoolmaterial.hg)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/hgshovel.png")).setItemName("hgshovel");
public static final Item hgSword = (new hdItemSword (1510, hdtoolmaterial.hg)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/hgsword.png")).setItemName("hgsword");
public static final Item hgAxe = (new hdItemAxe (1511, hdtoolmaterial.hg)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/hgaxe.png")).setItemName("hgaxe");
public static final Item hsPickaxe = (new hdItemPickaxe (1512, hdtoolmaterial.hs)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/hspickaxe.png")).setItemName("hspickaxe");
public static final Item hsSpade = (new hdItemSpade (1513, hdtoolmaterial.hs)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/hsshovel.png")).setItemName("hsshovel");
public static final Item hsSword = (new hdItemSword (1514, hdtoolmaterial.hs)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/hssword.png")).setItemName("hssword");
public static final Item hsAxe = (new hdItemAxe (1515, hdtoolmaterial.hs)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/hsaxe.png")).setItemName("hsaxe");
public static final Item sPickaxe = (new hdItemPickaxe (1516, hdtoolmaterial.silver)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/silverpickaxe.png")).setItemName("silverpickaxe");
public static final Item sSpade = (new hdItemSpade (1517, hdtoolmaterial.silver)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/silvershovel.png")).setItemName("silvershovel");
public static final Item sSword = (new hdItemSword (1518, hdtoolmaterial.silver)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/silversword.png")).setItemName("silversword");
public static final Item sAxe = (new hdItemAxe (1519, hdtoolmaterial.silver)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/silveraxe.png")).setItemName("silveraxe");
public void load()
{
hardeneddiamond.iconIndex = ModLoader.addOverride("/gui/items.png", "/hardeneddiamond.png");
burger.iconIndex = ModLoader.addOverride("/gui/items.png", "/burger.png");
chickensandwhich.iconIndex = ModLoader.addOverride("/gui/items.png", "/chickensandwhich.png");
dhwater.iconIndex = ModLoader.addOverride("/gui/items.png", "/dhwater.png");
cs.iconIndex = ModLoader.addOverride("/gui/items.png", "/cs.png");
hdc.iconIndex = ModLoader.addOverride("/gui/items.png", "/hdc.png");
hi.iconIndex = ModLoader.addOverride("/gui/items.png", "/hi.png");
pulledporksandwich.iconIndex = ModLoader.addOverride("/gui/items.png", "/pulledporksandwich.png");
stick2.iconIndex = ModLoader.addOverride("/gui/items.png", "/stick2.png");
ws.iconIndex = ModLoader.addOverride("/gui/items.png", "/ws.png");
ebar.iconIndex = ModLoader.addOverride("/gui/items.png", "/ebar.png");
cc.iconIndex = ModLoader.addOverride("/gui/items.png", "/cc.png");
s.iconIndex = ModLoader.addOverride("/gui/items.png", "/silver.png");
crystal.iconIndex = ModLoader.addOverride("/gui/items.png", "/crystal.png");
uf.iconIndex = ModLoader.addOverride("/gui/items.png", "/uf.png");
hg.iconIndex = ModLoader.addOverride("/gui/items.png", "/hg.png");
hs.iconIndex = ModLoader.addOverride("/gui/items.png", "/hs.png");
explosium.iconIndex = ModLoader.addOverride("/gui/items.png", "/explosium.png");
hardenedexplosium.iconIndex = ModLoader.addOverride("/gui/items.png", "/hardenedexplosium.png");
lifebar.iconIndex = ModLoader.addOverride("/gui/items.png", "/lifebar.png");
hardenedlifebar.iconIndex = ModLoader.addOverride("/gui/items.png", "/hardenedlifebar.png");
plasma.iconIndex = ModLoader.addOverride("/gui/items.png", "/plasma.png");
diamonddust.iconIndex = ModLoader.addOverride("/gui/items.png", "/diamonddust.png");
ModLoader.addName(ebar, "Energy Bar");
ModLoader.addName(chickensandwhich, "Chicken Sandwich");
ModLoader.addName(burger, "Burger");
ModLoader.addName(pulledporksandwich, "Pulled Pork Sandwich");
ModLoader.addName(hardeneddiamond, "Hardened Diamond");
ModLoader.addName(cs, "Condensed Sulphur");
ModLoader.addName(dhwater, "Dehydrated Watermelon");
ModLoader.addName(hdc, "Heavy Duty Cord");
ModLoader.addName(hi, "Hardened Iron");
ModLoader.addName(stick2, "Obsidian Rod");
ModLoader.addName(ws, "Woven String");
ModLoader.addName(cc, "Condensed Coal");
ModLoader.addName(uf, "Advanced Fuel");
ModLoader.addName(hg, "Hardened Gold");
ModLoader.addName(hs, "Hardened Silver");
ModLoader.addName(s, "Silver");
ModLoader.addName(crystal, "Crystal");
ModLoader.addName(explosium, "Explosium Bar");
ModLoader.addName(hardenedexplosium, "Hardened Explosium");
ModLoader.addName(lifebar, "Lifebar");
ModLoader.addName(hardenedlifebar, "Hardened Lifebar");
ModLoader.addName(plasma, "Plasma");
ModLoader.addName(diamonddust, "Diamond Dust");
ModLoader.addName(hdPickaxe, "Hardened Diamond Pickaxe");
ModLoader.addName(hdSpade, "Hardened Diamond Shovel");
ModLoader.addName(hdSword, "Hardened Diamond Sword");
ModLoader.addName(hdAxe, "Hardened Diamond Axe");
ModLoader.addName(hiPickaxe, "Hardened Iron Pickaxe");
ModLoader.addName(hiSpade, "Hardened Iron Shovel");
ModLoader.addName(hiSword, "Hardened Iron Sword");
ModLoader.addName(hiAxe, "Hardened Iron Axe");
ModLoader.addName(hgPickaxe, "Hardened Gold Pickaxe");
ModLoader.addName(hgSpade, "Hardened Gold Shovel");
ModLoader.addName(hgSword, "Hardened Gold Sword");
ModLoader.addName(hgAxe, "Hardened Gold Axe");
ModLoader.addName(hsPickaxe, "Hardened Silver Pickaxe");
ModLoader.addName(hsSpade, "Hardened Silver Shovel");
ModLoader.addName(hsSword, "Hardened Silver Sword");
ModLoader.addName(hsAxe, "Hardened Silver Axe");
ModLoader.addName(sPickaxe, "Silver Pickaxe");
ModLoader.addName(sSpade, "Silver Shovel");
ModLoader.addName(sSword, "Silver Sword");
ModLoader.addName(sAxe, "Silver Axe");
ModLoader.addRecipe(new ItemStack(ebar, 1), new Object [] {
"XXX", "XXX", Character.valueOf('X'), dhwater});
ModLoader.addRecipe(new ItemStack(hardeneddiamond, 1), new Object [] {
"XX", "XX", Character.valueOf('X'), Item.diamond});
ModLoader.addRecipe(new ItemStack(burger, 1), new Object [] {
"X", "Z", "X", Character.valueOf('X'), Item.bread,
Character.valueOf('Z'), Item.beefCooked});
ModLoader.addRecipe(new ItemStack(chickensandwhich, 1), new Object [] {
"X", "Z", "X", Character.valueOf('X'), Item.bread,
Character.valueOf('Z'), Item.chickenCooked});
ModLoader.addRecipe(new ItemStack(cs, 1), new Object [] {
"XX", "XX", Character.valueOf('X'), Item.gunpowder});
ModLoader.addRecipe(new ItemStack(hdc, 1), new Object [] {
"XX", "XX", Character.valueOf('X'),ws });
ModLoader.addRecipe(new ItemStack(hi, 1), new Object [] {
"XX", "XX", Character.valueOf('X'), Item.ingotIron});
ModLoader.addRecipe(new ItemStack(pulledporksandwich, 1), new Object [] {
"X", "Z", "X", Character.valueOf('X'), Item.bread, Character.valueOf('Z'), Item.porkCooked});
ModLoader.addRecipe(new ItemStack(stick2, 1), new Object [] {
"X", "X", "X", Character.valueOf('X'), Block.obsidian});
ModLoader.addRecipe(new ItemStack(ws, 1), new Object [] {
"XXX", "XXX", "XXX", Character.valueOf('X'), Item.silk});
ModLoader.addRecipe(new ItemStack(cc, 1), new Object [] {
"XX", "XX", Character.valueOf('X'), Item.coal});
ModLoader.addRecipe(new ItemStack(uf, 1), new Object [] {
"ZXZ", "XGX", "ZXZ", Character.valueOf('X'), cc, Character.valueOf('Z'), Item.redstone, Character.valueOf('G'), Item.lightStoneDust});
ModLoader.addRecipe(new ItemStack(hg, 1), new Object [] {
"XX", "XX", Character.valueOf('X'), Item.ingotGold, Character.valueOf('Z')});
ModLoader.addRecipe(new ItemStack(hs, 1), new Object [] {
"XX", "XX", Character.valueOf('X'),s});
ModLoader.addRecipe(new ItemStack(hardenedexplosium, 1), new Object [] {
"XX", "XX", Character.valueOf('X'),explosium});
ModLoader.addRecipe(new ItemStack(hardenedlifebar, 1), new Object [] {
"XX", "XX", Character.valueOf('X'),lifebar});
ModLoader.addRecipe(new ItemStack(plasma, 1), new Object [] {
"DDD", "DXD", "DDD", Character.valueOf('D'),diamonddust, Character.valueOf('X'),Item.redstone});
ModLoader.addRecipe(new ItemStack(diamonddust, 5), new Object [] {
"X", Character.valueOf('X'),Item.diamond});
ModLoader.addRecipe(new ItemStack(hdPickaxe, 1), new Object [] {
"DDD", " S ", " S ", Character.valueOf('D'),hardeneddiamond, Character.valueOf('X'),stick2});
ModLoader.addRecipe(new ItemStack(hiPickaxe, 1), new Object [] {
"DDD", " S ", " S ", Character.valueOf('D'),hi, Character.valueOf('X'),stick2});
ModLoader.addRecipe(new ItemStack(hgPickaxe, 1), new Object [] {
"DDD", " S ", " S ", Character.valueOf('D'),hg, Character.valueOf('X'),stick2});
ModLoader.addRecipe(new ItemStack(hsPickaxe, 1), new Object [] {
"DDD", " S ", " S ", Character.valueOf('D'),hs, Character.valueOf('X'),stick2});
ModLoader.addRecipe(new ItemStack(sPickaxe, 1), new Object [] {
" D ", " S ", " S ", Character.valueOf('D'),s, Character.valueOf('X'),Item.stick});
ModLoader.addRecipe(new ItemStack(hdSpade, 1), new Object [] {
" D ", " S ", " S ", Character.valueOf('D'),hardeneddiamond, Character.valueOf('X'),stick2});
ModLoader.addRecipe(new ItemStack(hiSpade, 1), new Object [] {
" D ", " S ", " S ", Character.valueOf('D'),hi, Character.valueOf('X'),stick2});
ModLoader.addRecipe(new ItemStack(hgSpade, 1), new Object [] {
" D ", " S ", " S ", Character.valueOf('D'),hg, Character.valueOf('X'),stick2});
ModLoader.addRecipe(new ItemStack(hsSpade, 1), new Object [] {
" D ", " S ", " S ", Character.valueOf('D'),hs, Character.valueOf('X'),stick2});
ModLoader.addRecipe(new ItemStack(sSpade, 1), new Object [] {
" D ", " S ", " S ", Character.valueOf('D'),s, Character.valueOf('X'),Item.stick});
ModLoader.addRecipe(new ItemStack(hdSword, 1), new Object [] {
" D ", " D ", " S ", Character.valueOf('D'),hardeneddiamond, Character.valueOf('X'),stick2});
ModLoader.addRecipe(new ItemStack(hiSword, 1), new Object [] {
" D ", " D ", " S ", Character.valueOf('D'),hi, Character.valueOf('X'),stick2});
ModLoader.addRecipe(new ItemStack(hgSword, 1), new Object [] {
" D ", " D ", " S ", Character.valueOf('D'),hg, Character.valueOf('X'),stick2});
ModLoader.addRecipe(new ItemStack(sSword, 1), new Object [] {
" D ", " D ", " S ", Character.valueOf('D'),s, Character.valueOf('X'),Item.stick});
ModLoader.addRecipe(new ItemStack(hsSword, 1), new Object [] {
" D ", " D ", " S ", Character.valueOf('D'),hs, Character.valueOf('X'),stick2});
ModLoader.addRecipe(new ItemStack(hdAxe, 1), new Object [] {
"DD ", "DS ", " S ", Character.valueOf('D'),hardeneddiamond, Character.valueOf('X'),Item.redstone});
ModLoader.addRecipe(new ItemStack(hiAxe, 1), new Object [] {
"DD ", "DS ", " S ", Character.valueOf('D'),hi, Character.valueOf('X'),stick2});
ModLoader.addRecipe(new ItemStack(hsAxe, 1), new Object [] {
"DD ", "DS ", " S ", Character.valueOf('D'),hs, Character.valueOf('X'),stick2});
ModLoader.addRecipe(new ItemStack(sAxe, 1), new Object [] {
"DD ", "DS ", " S ", Character.valueOf('D'),s, Character.valueOf('X'),Item.stick});
ModLoader.addRecipe(new ItemStack(hgAxe, 1), new Object [] {
"DD ", "DS ", " S ", Character.valueOf('D'),hg, Character.valueOf('X'),stick2});
ModLoader.addSmelting(Item.melon.shiftedIndex, new ItemStack(dhwater, 1));
}
public int addFuel1(int i, int j)
{
if(i == cc.shiftedIndex)
return 6400;
return 0;
}
public int addFuel2(int i, int j)
{
if(i == uf.shiftedIndex)
return 51200;
return 0;
}
public int addFuel3(int i, int j)
{
if(i == plasma.shiftedIndex)
return 500000;
return 0;
}
public String getVersion()
{
return "1.2.5";
}
}
--- BEGIN ERROR REPORT 58410c3 --------
Generated 4/25/12 6:03 PM
Minecraft: Minecraft 1.2.5
OS: Mac OS X (x86_64) version 10.6.8
Java: 1.6.0_29, Apple Inc.
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Apple Inc.
LWJGL: 2.4.2
OpenGL: NVIDIA GeForce 9400 OpenGL Engine version 2.1 NVIDIA-1.6.36, NVIDIA Corporation
java.lang.ArrayIndexOutOfBoundsException: 5
at net.minecraft.src.CraftingManager.addRecipe(CraftingManager.java:374)
at net.minecraft.src.ModLoader.addRecipe(ModLoader.java:412)
at net.minecraft.src.mod_hardeneddiamond.load(mod_hardeneddiamond.java:228)
at net.minecraft.src.ModLoader.init(ModLoader.java:856)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:157)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:85)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:12)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:424)
at net.minecraft.client.Minecraft.run(Minecraft.java:786)
at java.lang.Thread.run(Thread.java:680)
--- END ERROR REPORT 2b976a61 ----------
I know you get like, 3000 of these a day, but I really do need help with this, I'm not sure what I've done wrong.
Heres the error report:
src\minecraft\net\minecraft\src\mod_NetherTools.java:8: error: cannot find symbol
public static final Item NetherrackPickaxe = new ItemNetherrackPickaxe(2001, EnumToolMaterial.NETHER).setItemName("Netherrack Pickaxe");
^
symbol: class ItemNetherrackPickaxe
location: class mod_NetherTools
src\minecraft\net\minecraft\src\mod_NetherTools.java:9: error: cannot find symbol
public static final Item NetherrackSpade = new ItemNetherrackSpade(2002, EnumToolMaterial.NETHER).setItemName("Netherrack Shovel");
^
symbol: class ItemNetherrackSpade
location: class mod_NetherTools
src\minecraft\net\minecraft\src\mod_NetherTools.java:10: error: cannot find symbol
public static final Item NetherrackAxe = new ItemNetherrackAxe(2003, EnumToolMaterial.NETHER).setItemName("Netherrack Axe");
^
symbol: class ItemNetherrackAxe
location: class mod_NetherTools
src\minecraft\net\minecraft\src\mod_NetherTools.java:11: error: cannot find symbol
public static final Item NetherrackHoe = new ItemNetherrackHoe(2004, EnumToolMaterial.NETHER).setItemName("Netherrack Hoe");
^
symbol: class ItemNetherrackHoe
location: class mod_NetherTools
src\minecraft\net\minecraft\src\mod_NetherTools.java:12: error: cannot find symbol
public static final Item NetherrackSword = new ItemNetherrackSword(2005, EnumToolMaterial.NETHER).setItemName("Netherrack Sword");
^
symbol: class ItemNetherrackSword
location: class mod_NetherTools
src\minecraft\net\minecraft\src\mod_NetherTools.java:32: error: cannot find symbol
ModLoader.addRecipe(new ItemStack(NetherrackHoe, 1), new Object[] {"** ", " @ ", " @ ", Character.valueOf('*'), Block.Netherrack, Character.valueOf('@'), Item.stick});
^
symbol: variable Netherrack
location: class Block
src\minecraft\net\minecraft\src\mod_NetherTools.java:33: error: cannot find symbol
ModLoader.addRecipe(new ItemStack(NetherrackSword, 1), new Object[] {" * ", " * ", " @ ", Character.valueOf('*'), Block.Netherrack, Character.valueOf('@'), Item.stick});
^
symbol: variable Netherrack
location: class Block
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
7 errors
Heres my code:
package net.minecraft.src;
import java.util.Random;
public class mod_NetherTools extends BaseMod
{
public static final Item NetherrackPickaxe = new ItemNetherrackPickaxe(2001, EnumToolMaterial.NETHER).setItemName("Netherrack Pickaxe");
public static final Item NetherrackSpade = new ItemNetherrackSpade(2002, EnumToolMaterial.NETHER).setItemName("Netherrack Shovel");
public static final Item NetherrackAxe = new ItemNetherrackAxe(2003, EnumToolMaterial.NETHER).setItemName("Netherrack Axe");
public static final Item NetherrackHoe = new ItemNetherrackHoe(2004, EnumToolMaterial.NETHER).setItemName("Netherrack Hoe");
public static final Item NetherrackSword = new ItemNetherrackSword(2005, EnumToolMaterial.NETHER).setItemName("Netherrack Sword");
public mod_NetherTools()
{
NetherrackPickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/NetherrackPickaxe.png");
NetherrackSpade.iconIndex = ModLoader.addOverride("/gui/items.png", "/NetherrackSpade.png");
NetherrackAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/NetherrackAxe.png");
NetherrackHoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/NetherrackHoe.png");
NetherrackSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/NetherrackSword.png");
ModLoader.addName(NetherrackPickaxe, "Netherrack Pickaxe");
ModLoader.addName(NetherrackSpade, "Netherrack Shovel");
ModLoader.addName(NetherrackAxe, "Netherrack Axe");
ModLoader.addName(NetherrackHoe, "Netherrack Hoe");
ModLoader.addName(NetherrackSword, "Netherrack Sword");
ModLoader.addRecipe(new ItemStack(NetherrackPickaxe, 1), new Object[] {"***", " @ ", " @ ", Character.valueOf('*'), Block.netherrack, Character.valueOf('@'), Item.stick});
ModLoader.addRecipe(new ItemStack(NetherrackAxe, 1), new Object[] {"** ", "*@ ", " @ ", Character.valueOf('*'), Block.netherrack, Character.valueOf('@'), Item.stick});
ModLoader.addRecipe(new ItemStack(NetherrackSpade, 1), new Object[] {" * ", " @ ", " @ ", Character.valueOf('*'), Block.netherrack, Character.valueOf('@'), Item.stick});
ModLoader.addRecipe(new ItemStack(NetherrackHoe, 1), new Object[] {"** ", " @ ", " @ ", Character.valueOf('*'), Block.Netherrack, Character.valueOf('@'), Item.stick});
ModLoader.addRecipe(new ItemStack(NetherrackSword, 1), new Object[] {" * ", " * ", " @ ", Character.valueOf('*'), Block.Netherrack, Character.valueOf('@'), Item.stick});
}
public void load()
{
}
public String getVersion()
{
return "1.2.5";
}
}
Anybody got answers for me at all? I've tried a lot of things, but I just cant figure it out. I'm new to coding mods.
(EDIT: I fixed the Block.Netherrack of the sword and hoe to the correct Block.netherrack)
(EDIT2: Added the correct path to my .png texture files. BTW, they look freaking awesome.)
This is an error message that appears when I run Minecraft.
Mods loaded: 6
ModLoader 1.2.5
mod_SecretExtra 1.2.5
mod_CreeperBlock 1.2.5
mod_TMsMod 1.2.5
mod_PocketGodIslanders 1.2.5
mod_BeastSkillsMod 1.2.5
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT 6445f55f --------
Generated 26/04/12 4:29 PM
Minecraft: Minecraft 1.2.5
OS: Windows XP (x86) version 5.1
Java: 1.7.0_03, Oracle Corporation
VM: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Quadro NVS 285/PCI/SSE2 version 2.1.2, NVIDIA Corporation
java.lang.ArrayIndexOutOfBoundsException: 930
at ModLoader.initStats(ModLoader.java:926)
at ModLoader.init(ModLoader.java:910)
at ModLoader.addAllRenderers(ModLoader.java:189)
at ahu.<init>(ahu.java:77)
at ahu.<clinit>(ahu.java:8)
at net.minecraft.client.Minecraft.a(SourceFile:273)
at net.minecraft.client.Minecraft.run(SourceFile:657)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT d5584c49 ----------
I am sorry, but i am REALLY new to this. All i have EVER done before is a HelloWorld code so bear with me.
Where do i put in the code? I chose eclipse in the MCP folder as a workplace, now what?
You need a thing clled notepad++ or any other notepad type thing then open up your notepad++ or anyother one
copy the code paste it then put the code in the right lines by pressing enter after that follow instructions on page 1
This is an error message that appears when I run Minecraft.
Mods loaded: 6
ModLoader 1.2.5
mod_SecretExtra 1.2.5
mod_CreeperBlock 1.2.5
mod_TMsMod 1.2.5
mod_PocketGodIslanders 1.2.5
mod_BeastSkillsMod 1.2.5
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT 6445f55f --------
Generated 26/04/12 4:29 PM
Minecraft: Minecraft 1.2.5
OS: Windows XP (x86) version 5.1
Java: 1.7.0_03, Oracle Corporation
VM: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Quadro NVS 285/PCI/SSE2 version 2.1.2, NVIDIA Corporation
java.lang.ArrayIndexOutOfBoundsException: 930
at ModLoader.initStats(ModLoader.java:926)
at ModLoader.init(ModLoader.java:910)
at ModLoader.addAllRenderers(ModLoader.java:189)
at ahu.<init>(ahu.java:77)
at ahu.<clinit>(ahu.java:8)
at net.minecraft.client.Minecraft.a(SourceFile:273)
at net.minecraft.client.Minecraft.run(SourceFile:657)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT d5584c49 ----------
one of the blocks there is out of the block range remember you have to do it within the block range [check page 1] max is 255
I am sorry, but i am REALLY new to this. All i have EVER done before is a HelloWorld code so bear with me.
Where do i put in the code? I chose eclipse in the MCP folder as a workplace, now what?
Press the "New Class" button. It is a green circle with a white 'c' on it. Then just type in the name of the class and the information below in the appropriate boxes.
I need help. Im getting errors but i dont know why.
package net.minecraft.src;
public class mod_hardeneddiamond extends BaseMod
{
public static final Item ebar = new ItemFood(5001, 12, 2f, false).setItemName("ebar");
public static final Item chickensandwhich = new ItemFood(5000, 14, 1f, false).setItemName("chickensandwhich");
public static final Item pulledporksandwich = new ItemFood(4999, 20, 2f, false).setItemName("pulledporksandwich");
public static final Item burger = new ItemFood(4998, 20, 2f, false).setItemName("burger");
public static final Item hardeneddiamond = new hardeneddiamond(4997).setItemName("hardeneddiamond");
public static final Item cs = new cs(4996).setItemName("cs");
public static final Item dhwater = new dhwater(4995).setItemName("dhwater");
public static final Item hdc = new hdc(4994).setItemName("hdc");
public static final Item hi = new hi(4993).setItemName("hi");
public static final Item stick2 = new stick2(4992).setItemName("stick2");
public static final Item ws = new ws(4991).setItemName("ws");
public static final Item cc = new Item(4990).setItemName("cc");
public static final Item uf = new Item(4989).setItemName("uf");
public static final Item hg = new Item(4988).setItemName("hg");
public static final Item hs = new Item(4987).setItemName("hs");
public static final Item s = new Item(4986).setItemName("s");
public static final Item crystal = new Item(4985).setItemName("crystal");
public static final Item explosium = new Item(4984).setItemName("explosium");
public static final Item hardenedexplosium = new Item(4983).setItemName("hardenedexplosium");
public static final Item lifebar = new Item(4982).setItemName("lifebar");
public static final Item hardenedlifebar = new Item(4981).setItemName("hardenedlifebar");
public static final Item plasma = new Item(4980).setItemName("plasma");
public static final Item diamonddust = new Item(4979).setItemName("diamonddust");
public static final Item hdPickaxe = (new hdItemPickaxe (1500, hdtoolmaterial.hd)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/hdpickaxe.png")).setItemName("hdpickaxe");
public static final Item hdSpade = (new hdItemSpade (1501, hdtoolmaterial.hd)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/hdshovel.png")).setItemName("hdshovel");
public static final Item hdSword = (new hdItemSword (1502, hdtoolmaterial.hd)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/hdsword.png")).setItemName("hdsword");
public static final Item hdAxe = (new hdItemAxe (1503, hdtoolmaterial.hd)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/hdaxe.png")).setItemName("hdaxe");
public static final Item hiPickaxe = (new hdItemPickaxe (1504, hdtoolmaterial.hi)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/hipickaxe.png")).setItemName("hipickaxe");
public static final Item hiSpade = (new hdItemSpade (1505, hdtoolmaterial.hi)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/hishovel.png")).setItemName("hishovel");
public static final Item hiSword = (new hdItemSword (1506, hdtoolmaterial.hi)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/hisword.png")).setItemName("hisword");
public static final Item hiAxe = (new hdItemAxe (1507, hdtoolmaterial.hi)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/hiaxe.png")).setItemName("hiaxe");
public static final Item hgPickaxe = (new hdItemPickaxe (1508, hdtoolmaterial.hg)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/hgpickaxe.png")).setItemName("hgpickaxe");
public static final Item hgSpade = (new hdItemSpade (1509, hdtoolmaterial.hg)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/hgshovel.png")).setItemName("hgshovel");
public static final Item hgSword = (new hdItemSword (1510, hdtoolmaterial.hg)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/hgsword.png")).setItemName("hgsword");
public static final Item hgAxe = (new hdItemAxe (1511, hdtoolmaterial.hg)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/hgaxe.png")).setItemName("hgaxe");
public static final Item hsPickaxe = (new hdItemPickaxe (1512, hdtoolmaterial.hs)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/hspickaxe.png")).setItemName("hspickaxe");
public static final Item hsSpade = (new hdItemSpade (1513, hdtoolmaterial.hs)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/hsshovel.png")).setItemName("hsshovel");
public static final Item hsSword = (new hdItemSword (1514, hdtoolmaterial.hs)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/hssword.png")).setItemName("hssword");
public static final Item hsAxe = (new hdItemAxe (1515, hdtoolmaterial.hs)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/hsaxe.png")).setItemName("hsaxe");
public static final Item sPickaxe = (new hdItemPickaxe (1516, hdtoolmaterial.silver)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/silverpickaxe.png")).setItemName("silverpickaxe");
public static final Item sSpade = (new hdItemSpade (1517, hdtoolmaterial.silver)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/silvershovel.png")).setItemName("silvershovel");
public static final Item sSword = (new hdItemSword (1518, hdtoolmaterial.silver)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/silversword.png")).setItemName("silversword");
public static final Item sAxe = (new hdItemAxe (1519, hdtoolmaterial.silver)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/silveraxe.png")).setItemName("silveraxe");
public void load()
{
hardeneddiamond.iconIndex = ModLoader.addOverride("/gui/items.png", "/hardeneddiamond.png");
burger.iconIndex = ModLoader.addOverride("/gui/items.png", "/burger.png");
chickensandwhich.iconIndex = ModLoader.addOverride("/gui/items.png", "/chickensandwhich.png");
dhwater.iconIndex = ModLoader.addOverride("/gui/items.png", "/dhwater.png");
cs.iconIndex = ModLoader.addOverride("/gui/items.png", "/cs.png");
hdc.iconIndex = ModLoader.addOverride("/gui/items.png", "/hdc.png");
hi.iconIndex = ModLoader.addOverride("/gui/items.png", "/hi.png");
pulledporksandwich.iconIndex = ModLoader.addOverride("/gui/items.png", "/pulledporksandwich.png");
stick2.iconIndex = ModLoader.addOverride("/gui/items.png", "/stick2.png");
ws.iconIndex = ModLoader.addOverride("/gui/items.png", "/ws.png");
ebar.iconIndex = ModLoader.addOverride("/gui/items.png", "/ebar.png");
cc.iconIndex = ModLoader.addOverride("/gui/items.png", "/cc.png");
s.iconIndex = ModLoader.addOverride("/gui/items.png", "/silver.png");
crystal.iconIndex = ModLoader.addOverride("/gui/items.png", "/crystal.png");
uf.iconIndex = ModLoader.addOverride("/gui/items.png", "/uf.png");
hg.iconIndex = ModLoader.addOverride("/gui/items.png", "/hg.png");
hs.iconIndex = ModLoader.addOverride("/gui/items.png", "/hs.png");
explosium.iconIndex = ModLoader.addOverride("/gui/items.png", "/explosium.png");
hardenedexplosium.iconIndex = ModLoader.addOverride("/gui/items.png", "/hardenedexplosium.png");
lifebar.iconIndex = ModLoader.addOverride("/gui/items.png", "/lifebar.png");
hardenedlifebar.iconIndex = ModLoader.addOverride("/gui/items.png", "/hardenedlifebar.png");
plasma.iconIndex = ModLoader.addOverride("/gui/items.png", "/plasma.png");
diamonddust.iconIndex = ModLoader.addOverride("/gui/items.png", "/diamonddust.png");
ModLoader.addName(ebar, "Energy Bar");
ModLoader.addName(chickensandwhich, "Chicken Sandwich");
ModLoader.addName(burger, "Burger");
ModLoader.addName(pulledporksandwich, "Pulled Pork Sandwich");
ModLoader.addName(hardeneddiamond, "Hardened Diamond");
ModLoader.addName(cs, "Condensed Sulphur");
ModLoader.addName(dhwater, "Dehydrated Watermelon");
ModLoader.addName(hdc, "Heavy Duty Cord");
ModLoader.addName(hi, "Hardened Iron");
ModLoader.addName(stick2, "Obsidian Rod");
ModLoader.addName(ws, "Woven String");
ModLoader.addName(cc, "Condensed Coal");
ModLoader.addName(uf, "Advanced Fuel");
ModLoader.addName(hg, "Hardened Gold");
ModLoader.addName(hs, "Hardened Silver");
ModLoader.addName(s, "Silver");
ModLoader.addName(crystal, "Crystal");
ModLoader.addName(explosium, "Explosium Bar");
ModLoader.addName(hardenedexplosium, "Hardened Explosium");
ModLoader.addName(lifebar, "Lifebar");
ModLoader.addName(hardenedlifebar, "Hardened Lifebar");
ModLoader.addName(plasma, "Plasma");
ModLoader.addName(diamonddust, "Diamond Dust");
ModLoader.addName(hdPickaxe, "Hardened Diamond Pickaxe");
ModLoader.addName(hdSpade, "Hardened Diamond Shovel");
ModLoader.addName(hdSword, "Hardened Diamond Sword");
ModLoader.addName(hdAxe, "Hardened Diamond Axe");
ModLoader.addName(hiPickaxe, "Hardened Iron Pickaxe");
ModLoader.addName(hiSpade, "Hardened Iron Shovel");
ModLoader.addName(hiSword, "Hardened Iron Sword");
ModLoader.addName(hiAxe, "Hardened Iron Axe");
ModLoader.addName(hgPickaxe, "Hardened Gold Pickaxe");
ModLoader.addName(hgSpade, "Hardened Gold Shovel");
ModLoader.addName(hgSword, "Hardened Gold Sword");
ModLoader.addName(hgAxe, "Hardened Gold Axe");
ModLoader.addName(hsPickaxe, "Hardened Silver Pickaxe");
ModLoader.addName(hsSpade, "Hardened Silver Shovel");
ModLoader.addName(hsSword, "Hardened Silver Sword");
ModLoader.addName(hsAxe, "Hardened Silver Axe");
ModLoader.addName(sPickaxe, "Silver Pickaxe");
ModLoader.addName(sSpade, "Silver Shovel");
ModLoader.addName(sSword, "Silver Sword");
ModLoader.addName(sAxe, "Silver Axe");
ModLoader.addRecipe(new ItemStack(ebar, 1), new Object [] {
"XXX", "XXX", Character.valueOf('X'), dhwater});
ModLoader.addRecipe(new ItemStack(hardeneddiamond, 1), new Object [] {
"XX", "XX", Character.valueOf('X'), Item.diamond});
ModLoader.addRecipe(new ItemStack(burger, 1), new Object [] {
"X", "Z", "X", Character.valueOf('X'), Item.bread,
Character.valueOf('Z'), Item.beefCooked});
ModLoader.addRecipe(new ItemStack(chickensandwhich, 1), new Object [] {
"X", "Z", "X", Character.valueOf('X'), Item.bread,
Character.valueOf('Z'), Item.chickenCooked});
ModLoader.addRecipe(new ItemStack(cs, 1), new Object [] {
"XX", "XX", Character.valueOf('X'), Item.gunpowder});
ModLoader.addRecipe(new ItemStack(hdc, 1), new Object [] {
"XX", "XX", Character.valueOf('X'),ws });
ModLoader.addRecipe(new ItemStack(hi, 1), new Object [] {
"XX", "XX", Character.valueOf('X'), Item.ingotIron});
ModLoader.addRecipe(new ItemStack(pulledporksandwich, 1), new Object [] {
"X", "Z", "X", Character.valueOf('X'), Item.bread, Character.valueOf('Z'), Item.porkCooked});
ModLoader.addRecipe(new ItemStack(stick2, 1), new Object [] {
"X", "X", "X", Character.valueOf('X'), Block.obsidian});
ModLoader.addRecipe(new ItemStack(ws, 1), new Object [] {
"XXX", "XXX", "XXX", Character.valueOf('X'), Item.silk});
ModLoader.addRecipe(new ItemStack(cc, 1), new Object [] {
"XX", "XX", Character.valueOf('X'), Item.coal});
ModLoader.addRecipe(new ItemStack(uf, 1), new Object [] {
"ZXZ", "XGX", "ZXZ", Character.valueOf('X'), cc, Character.valueOf('Z'), Item.redstone, Character.valueOf('G'), Item.lightStoneDust});
ModLoader.addRecipe(new ItemStack(hg, 1), new Object [] {
"XX", "XX", Character.valueOf('X'), Item.ingotGold, Character.valueOf('Z')});
ModLoader.addRecipe(new ItemStack(hs, 1), new Object [] {
"XX", "XX", Character.valueOf('X'),s});
ModLoader.addRecipe(new ItemStack(hardenedexplosium, 1), new Object [] {
"XX", "XX", Character.valueOf('X'),explosium});
ModLoader.addRecipe(new ItemStack(hardenedlifebar, 1), new Object [] {
"XX", "XX", Character.valueOf('X'),lifebar});
ModLoader.addRecipe(new ItemStack(plasma, 1), new Object [] {
"DDD", "DXD", "DDD", Character.valueOf('D'),diamonddust, Character.valueOf('X'),Item.redstone});
ModLoader.addRecipe(new ItemStack(diamonddust, 5), new Object [] {
"X", Character.valueOf('X'),Item.diamond});
ModLoader.addRecipe(new ItemStack(hdPickaxe, 1), new Object [] {
"DDD", " S ", " S ", Character.valueOf('D'),hardeneddiamond, Character.valueOf('X'),stick2});
ModLoader.addRecipe(new ItemStack(hiPickaxe, 1), new Object [] {
"DDD", " S ", " S ", Character.valueOf('D'),hi, Character.valueOf('X'),stick2});
ModLoader.addRecipe(new ItemStack(hgPickaxe, 1), new Object [] {
"DDD", " S ", " S ", Character.valueOf('D'),hg, Character.valueOf('X'),stick2});
ModLoader.addRecipe(new ItemStack(hsPickaxe, 1), new Object [] {
"DDD", " S ", " S ", Character.valueOf('D'),hs, Character.valueOf('X'),stick2});
ModLoader.addRecipe(new ItemStack(sPickaxe, 1), new Object [] {
" D ", " S ", " S ", Character.valueOf('D'),s, Character.valueOf('X'),Item.stick});
ModLoader.addRecipe(new ItemStack(hdSpade, 1), new Object [] {
" D ", " S ", " S ", Character.valueOf('D'),hardeneddiamond, Character.valueOf('X'),stick2});
ModLoader.addRecipe(new ItemStack(hiSpade, 1), new Object [] {
" D ", " S ", " S ", Character.valueOf('D'),hi, Character.valueOf('X'),stick2});
ModLoader.addRecipe(new ItemStack(hgSpade, 1), new Object [] {
" D ", " S ", " S ", Character.valueOf('D'),hg, Character.valueOf('X'),stick2});
ModLoader.addRecipe(new ItemStack(hsSpade, 1), new Object [] {
" D ", " S ", " S ", Character.valueOf('D'),hs, Character.valueOf('X'),stick2});
ModLoader.addRecipe(new ItemStack(sSpade, 1), new Object [] {
" D ", " S ", " S ", Character.valueOf('D'),s, Character.valueOf('X'),Item.stick});
ModLoader.addRecipe(new ItemStack(hdSword, 1), new Object [] {
" D ", " D ", " S ", Character.valueOf('D'),hardeneddiamond, Character.valueOf('X'),stick2});
ModLoader.addRecipe(new ItemStack(hiSword, 1), new Object [] {
" D ", " D ", " S ", Character.valueOf('D'),hi, Character.valueOf('X'),stick2});
ModLoader.addRecipe(new ItemStack(hgSword, 1), new Object [] {
" D ", " D ", " S ", Character.valueOf('D'),hg, Character.valueOf('X'),stick2});
ModLoader.addRecipe(new ItemStack(sSword, 1), new Object [] {
" D ", " D ", " S ", Character.valueOf('D'),s, Character.valueOf('X'),Item.stick});
ModLoader.addRecipe(new ItemStack(hsSword, 1), new Object [] {
" D ", " D ", " S ", Character.valueOf('D'),hs, Character.valueOf('X'),stick2});
ModLoader.addRecipe(new ItemStack(hdAxe, 1), new Object [] {
"DD ", "DS ", " S ", Character.valueOf('D'),hardeneddiamond, Character.valueOf('X'),Item.redstone});
ModLoader.addRecipe(new ItemStack(hiAxe, 1), new Object [] {
"DD ", "DS ", " S ", Character.valueOf('D'),hi, Character.valueOf('X'),stick2});
ModLoader.addRecipe(new ItemStack(hsAxe, 1), new Object [] {
"DD ", "DS ", " S ", Character.valueOf('D'),hs, Character.valueOf('X'),stick2});
ModLoader.addRecipe(new ItemStack(sAxe, 1), new Object [] {
"DD ", "DS ", " S ", Character.valueOf('D'),s, Character.valueOf('X'),Item.stick});
ModLoader.addRecipe(new ItemStack(hgAxe, 1), new Object [] {
"DD ", "DS ", " S ", Character.valueOf('D'),hg, Character.valueOf('X'),stick2});
ModLoader.addSmelting(Item.melon.shiftedIndex, new ItemStack(dhwater, 1));
}
public int addFuel1(int i, int j)
{
if(i == cc.shiftedIndex)
return 6400;
return 0;
}
public int addFuel2(int i, int j)
{
if(i == uf.shiftedIndex)
return 51200;
return 0;
}
public int addFuel3(int i, int j)
{
if(i == plasma.shiftedIndex)
return 500000;
return 0;
}
public String getVersion()
{
return "1.2.5";
}
}
--- BEGIN ERROR REPORT 58410c3 --------
Generated 4/25/12 6:03 PM
Minecraft: Minecraft 1.2.5
OS: Mac OS X (x86_64) version 10.6.8
Java: 1.6.0_29, Apple Inc.
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Apple Inc.
LWJGL: 2.4.2
OpenGL: NVIDIA GeForce 9400 OpenGL Engine version 2.1 NVIDIA-1.6.36, NVIDIA Corporation
java.lang.ArrayIndexOutOfBoundsException: 5
at net.minecraft.src.CraftingManager.addRecipe(CraftingManager.java:374)
at net.minecraft.src.ModLoader.addRecipe(ModLoader.java:412)
at net.minecraft.src.mod_hardeneddiamond.load(mod_hardeneddiamond.java:228)
at net.minecraft.src.ModLoader.init(ModLoader.java:856)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:157)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:85)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:12)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:424)
at net.minecraft.client.Minecraft.run(Minecraft.java:786)
at java.lang.Thread.run(Thread.java:680)
--- END ERROR REPORT 2b976a61 ----------
What is line 228 of your mod_*** class? All I can tell you at the moment is that there is something wrong with one of your recipes. I can assist you further when you post that line. Please remember to use spoilers when posting long code.
I know you get like, 3000 of these a day, but I really do need help with this, I'm not sure what I've done wrong.
Heres the error report:
src\minecraft\net\minecraft\src\mod_NetherTools.java:8: error: cannot find symbol
public static final Item NetherrackPickaxe = new ItemNetherrackPickaxe(2001, EnumToolMaterial.NETHER).setItemName("Netherrack Pickaxe");
^
symbol: class ItemNetherrackPickaxe
location: class mod_NetherTools
src\minecraft\net\minecraft\src\mod_NetherTools.java:9: error: cannot find symbol
public static final Item NetherrackSpade = new ItemNetherrackSpade(2002, EnumToolMaterial.NETHER).setItemName("Netherrack Shovel");
^
symbol: class ItemNetherrackSpade
location: class mod_NetherTools
src\minecraft\net\minecraft\src\mod_NetherTools.java:10: error: cannot find symbol
public static final Item NetherrackAxe = new ItemNetherrackAxe(2003, EnumToolMaterial.NETHER).setItemName("Netherrack Axe");
^
symbol: class ItemNetherrackAxe
location: class mod_NetherTools
src\minecraft\net\minecraft\src\mod_NetherTools.java:11: error: cannot find symbol
public static final Item NetherrackHoe = new ItemNetherrackHoe(2004, EnumToolMaterial.NETHER).setItemName("Netherrack Hoe");
^
symbol: class ItemNetherrackHoe
location: class mod_NetherTools
src\minecraft\net\minecraft\src\mod_NetherTools.java:12: error: cannot find symbol
public static final Item NetherrackSword = new ItemNetherrackSword(2005, EnumToolMaterial.NETHER).setItemName("Netherrack Sword");
^
symbol: class ItemNetherrackSword
location: class mod_NetherTools
src\minecraft\net\minecraft\src\mod_NetherTools.java:32: error: cannot find symbol
ModLoader.addRecipe(new ItemStack(NetherrackHoe, 1), new Object[] {"** ", " @ ", " @ ", Character.valueOf('*'), Block.Netherrack, Character.valueOf('@'), Item.stick});
^
symbol: variable Netherrack
location: class Block
src\minecraft\net\minecraft\src\mod_NetherTools.java:33: error: cannot find symbol
ModLoader.addRecipe(new ItemStack(NetherrackSword, 1), new Object[] {" * ", " * ", " @ ", Character.valueOf('*'), Block.Netherrack, Character.valueOf('@'), Item.stick});
^
symbol: variable Netherrack
location: class Block
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
7 errors
Heres my code:
package net.minecraft.src;
import java.util.Random;
public class mod_NetherTools extends BaseMod
{
public static final Item NetherrackPickaxe = new ItemNetherrackPickaxe(2001, EnumToolMaterial.NETHER).setItemName("Netherrack Pickaxe");
public static final Item NetherrackSpade = new ItemNetherrackSpade(2002, EnumToolMaterial.NETHER).setItemName("Netherrack Shovel");
public static final Item NetherrackAxe = new ItemNetherrackAxe(2003, EnumToolMaterial.NETHER).setItemName("Netherrack Axe");
public static final Item NetherrackHoe = new ItemNetherrackHoe(2004, EnumToolMaterial.NETHER).setItemName("Netherrack Hoe");
public static final Item NetherrackSword = new ItemNetherrackSword(2005, EnumToolMaterial.NETHER).setItemName("Netherrack Sword");
public mod_NetherTools()
{
NetherrackPickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/NetherrackPickaxe.png");
NetherrackSpade.iconIndex = ModLoader.addOverride("/gui/items.png", "/NetherrackSpade.png");
NetherrackAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/NetherrackAxe.png");
NetherrackHoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/NetherrackHoe.png");
NetherrackSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/NetherrackSword.png");
ModLoader.addName(NetherrackPickaxe, "Netherrack Pickaxe");
ModLoader.addName(NetherrackSpade, "Netherrack Shovel");
ModLoader.addName(NetherrackAxe, "Netherrack Axe");
ModLoader.addName(NetherrackHoe, "Netherrack Hoe");
ModLoader.addName(NetherrackSword, "Netherrack Sword");
ModLoader.addRecipe(new ItemStack(NetherrackPickaxe, 1), new Object[] {"***", " @ ", " @ ", Character.valueOf('*'), Block.netherrack, Character.valueOf('@'), Item.stick});
ModLoader.addRecipe(new ItemStack(NetherrackAxe, 1), new Object[] {"** ", "*@ ", " @ ", Character.valueOf('*'), Block.netherrack, Character.valueOf('@'), Item.stick});
ModLoader.addRecipe(new ItemStack(NetherrackSpade, 1), new Object[] {" * ", " @ ", " @ ", Character.valueOf('*'), Block.netherrack, Character.valueOf('@'), Item.stick});
ModLoader.addRecipe(new ItemStack(NetherrackHoe, 1), new Object[] {"** ", " @ ", " @ ", Character.valueOf('*'), Block.Netherrack, Character.valueOf('@'), Item.stick});
ModLoader.addRecipe(new ItemStack(NetherrackSword, 1), new Object[] {" * ", " * ", " @ ", Character.valueOf('*'), Block.Netherrack, Character.valueOf('@'), Item.stick});
}
public void load()
{
}
public String getVersion()
{
return "1.2.5";
}
}
Anybody got answers for me at all? I've tried a lot of things, but I just cant figure it out. I'm new to coding mods.
(EDIT: I fixed the Block.Netherrack of the sword and hoe to the correct Block.netherrack)
(EDIT2: Added the correct path to my .png texture files. BTW, they look freaking awesome.)
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
What piece function?
Ok thanks, it worked.
waht do i do.?
mod_UraniumOre: http://dl.dropbox.com/u/39578446/mod_UraniumOre.txt
UraniumOre: http://dl.dropbox.com/u/39578446/UraniumOre.txt
mod_UraniumIngot: http://dl.dropbox.com/u/39578446/mod_UraniumIngot.txt
UraniumIngot: http://dl.dropbox.com/u/39578446/UraniumIngot.txt
and here is my error report:
--- BEGIN ERROR REPORT e74c8929 --------
Generated 4/23/12 4:17 PM
Minecraft: Minecraft 1.2.5
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_03, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: AMD Radeon HD 6570 version 4.2.11554 Compatibility Profile Context, ATI Technologies Inc.
java.lang.Error: Unresolved compilation problems:
UraniumOre cannot be resolved or is not a field
UraniumIngot cannot be resolved or is not a field
at net.minecraft.src.mod_UraniumOre.load(mod_UraniumOre.java:15)
at net.minecraft.src.ModLoader.init(ModLoader.java:856)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:157)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:85)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:12)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:424)
at net.minecraft.client.Minecraft.run(Minecraft.java:786)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT e4b2e856 ----------
I don't know what I have done wrong:
--- BEGIN ERROR REPORT 33ed338b --------
Generated 4/23/12 6:04 PM
Minecraft: Minecraft 1.2.5
OS: Windows XP (x86) version 5.1
Java: 1.7.0_02, Oracle Corporation
VM: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Intel 845G version 1.3.0 - Build 4.14.10.4342, Intel
java.lang.ArrayIndexOutOfBoundsException: 271
at net.minecraft.src.ModLoader.initStats(ModLoader.java:905)
at net.minecraft.src.ModLoader.init(ModLoader.java:878)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:157)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:85)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:12)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:424)
at net.minecraft.client.Minecraft.run(Minecraft.java:786)
at java.lang.Thread.run(Thread.java:722)
--- END ERROR REPORT 494849f2 ----------
CodeHere:
Well, there's no errors, but when I make a block, I set the LightValue at 5F,
and it makes right. This is okay, but it's little changed like glass.
It is getting invisible.
And the game is getting slow...
What is this? I just want my block to 'bright'.
Not inivisible.
Here's the code.
public static final Block MagmaOre = new BlockMagmaOre(252, 0).setBlockName("MagmaOre").setHardness(5F).setResistance(4F).setLightValue(5F);
Mod Development
Did you by accident, ever run updatemd5.bat/sh when you had your classes in src?
Merge those two mod_ classes into one. Then it will make it easier for you to reference to each instance as you don't need to put mod_**.UraniumIngot, etc.
You have a block id too high. They must be below 256. Please remember your spoilers when posting code, especially long code like that.
The maximum light value you can set a block to is 1.
together they are powerful beyond imagination."
yes i did what do i do to fix it?
You'll have to take your classes out of src manually, run cleanup.bat/sh the decompile again. Once you've done that just add your classes back into src. After that you can recompile and reobfuscate as normal.
Run cleanup.bat/sh, download a fresh jar and ModLoader again. Then decompile again.
together they are powerful beyond imagination."
Heres the error report:
Heres my code:
Anybody got answers for me at all? I've tried a lot of things, but I just cant figure it out. I'm new to coding mods.
(EDIT: I fixed the Block.Netherrack of the sword and hoe to the correct Block.netherrack)
(EDIT2: Added the correct path to my .png texture files. BTW, they look freaking awesome.)
You need a thing clled notepad++ or any other notepad type thing then open up your notepad++ or anyother one
copy the code paste it then put the code in the right lines by pressing enter after that follow instructions on page 1
one of the blocks there is out of the block range remember you have to do it within the block range [check page 1] max is 255
Press the "New Class" button. It is a green circle with a white 'c' on it. Then just type in the name of the class and the information below in the appropriate boxes.
What is line 228 of your mod_*** class? All I can tell you at the moment is that there is something wrong with one of your recipes. I can assist you further when you post that line. Please remember to use spoilers when posting long code.
Mod Development
together they are powerful beyond imagination."
Thanks, I forgot that XD