• 1

    posted a message on How to fly when wearing specific armor
    Are you using onTickInGame or OnTickInGame? From the OP it looks like you are calling a method that doesn't exist.
    Posted in: Modification Development
  • 0

    posted a message on Code for 32bit Textures?
    Quote from ozzymud

    Huh? code? no clue what you mean...

    but here is a link to pretty much every thing you want to know about textures: Minecraft Wiki

    He wants to know how to add HD texture capabilities to his mod.
    Posted in: Modification Development
  • 0

    posted a message on Trying to update my WIP Mod
    Quote from kmiller100

    Exception in thread "Minecraft main thread" java.lang.ExceptionInInitializerError
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:421)
    at net.minecraft.src.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:41)
    at net.minecraft.client.Minecraft.run(Minecraft.java:741)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 2701
    at net.minecraft.src.ModLoader.init(ModLoader.java:996)
    at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:190)
    at net.minecraft.src.RenderManager.<init>(RenderManager.java:93)
    at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:14)
    ... 4 more
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 2701
    at net.minecraft.src.ModLoader.initStats(ModLoader.java:1010)
    at net.minecraft.src.ModLoader.init(ModLoader.java:983)
    ... 7 more

    Anyone help with this? I am trying to make a flower for my mod, and this pops up. No idea what I am doing wrong.

    Don't use block ids over 255.

    Also, please do not post on a topic that has had no replies for almost a year. Just create a new topic and ask the question there.
    Posted in: Modification Development
  • 1

    posted a message on Need Mod Dev. Help!
    Quote from Yo­amer

    I forgot to mention I'm using forge. Is this code forge compatible?

    (Having problems)

    It is just Minecraft code. What is the error?
    Posted in: Modification Development
  • 3

    posted a message on Take damage when you right click
    Use setMaxDamage(int) in the constructor. Then in the onItemRightClick method use

    itemstack.damageItem(1, entityplayer);
    Posted in: Modification Development
  • 0

    posted a message on 1.4.7 Help
    Quote from RedArmyMan

    Even when I use this tutorial I still get errors. Do you know anyone else that does a tutorial for furnaces?

    Post the errors and code. You will never get anywhere if you just "run away" from errors. Put some work in and figure them out.
    Posted in: Modification Development
  • 0

    posted a message on MOD PLEASE REMOVE
    You can't just copy and paste code for servers. Yes, some of it will be the same. Other parts of it will be different. For Bukkit, I suggest going here.
    Posted in: Modification Development
  • 0

    posted a message on Block Creation Not Working [1.4.7] Will give Prize if Fixed
    Block IDs must be below 255. The array size may be 4096 but the rest of the game is still only hard coded to accept 255.
    Posted in: Modification Development
  • 1

    posted a message on I need major help with this error
    Quote from mightydanp

    i just did but i wanted it to be cleaner

    Multiple files isn't cleaner.
    Posted in: Modification Development
  • 0

    posted a message on My mod dose not want to load?
    Quote from noonzark

    I don't have errors in my code and minecraft dose not crash it pauses so it dosent give me and error report but ill post my code under this comment
    @Mod(modid = "MynCraft", name = "MynCraft", version = "1.4.5")
    @NetworkMod(clientSideRequired = true, serverSideRequired = false)
    public class MynCraftMain
    {
    @Instance("MynCraft")
    public static MynCraftMain instance;
    
    @SidedProxy(clientSide = "noonzark.myncraft.client.ClientProxy", serverSide = "noonzark.myncraft.common.CommonProxy")
    public static CommonProxy proxy;
    
    @PreInit
    public void preInit(FMLPreInitializationEvent event)
    {
    DimensionManager.registerProviderType(dimention, DimensionWorldProviderTest.class, false);
    DimensionManager.registerDimension(dimention, dimention);
    
    EntityRegistry.registerModEntity(EntityFireGuy.class, "Guy", 1, this, 80, 3, true);
    EntityRegistry.addSpawn(EntityFireGuy.class, 10, 2, 8, EnumCreatureType.monster, BiomeGenBase.desert, BiomeGenBase.desert, BiomeGenBase.desertHills);
    LanguageRegistry.instance().addStringLocalization("entity.MynCraft.Guy.name", "Guy");
    registerEntityEgg(EntityFireGuy.class, 0xF51B1B, 0xF5761B);
    }
    
    @Init
    /*Blocks*/public void preInit(FMLInitializationEvent event)
    {
    MinecraftForgeClient.preloadTexture("/noonzark/myncraft/common/Blocks.png");
    MinecraftForgeClient.preloadTexture("/noonzark/myncraft/common/Blocks_HD.png");
    
    ObsidianOre = new BlockObsidianOre(230, 0).setBlockName("ObsidianOre").setCreativeTab(ModBlocksTab);
    RubyOre = new BlockRubyOre(231, 1).setBlockName("RubyOre").setCreativeTab(ModBlocksTab);
    MagicDirt = new BlockMagicDirt(232, 2).setBlockName("MagicDirt").setCreativeTab(ModBlocksTab);
    MagicGrass = new BlockMagicGrass(233, 3).setBlockName("MagicGrass").setCreativeTab(ModBlocksTab);
    MagicLog = new BlockMagicLog(234).setBlockName("MagicLog").setCreativeTab(ModBlocksTab);
    MagicPlanks = new BlockMagicPlanks(235, 4).setBlockName("MagicPlanks").setCreativeTab(ModBlocksTab);
    MagicLeaf = new BlockMagicLeaf(236, 5).setBlockName("MagicLeaf").setCreativeTab(ModBlocksTab);
    BlockForge = new FurnaceBlock(237, Material.iron).setBlockName("Forge").setCreativeTab(ModBlocksTab);
    AmethystOre = new BlockAmethystOre(239, 6).setBlockName("AmethystOre").setCreativeTab(ModBlocksTab);
    SapphireOre = new BlockSapphireOre(240, 7).setBlockName("SapphireOre").setCreativeTab(ModBlocksTab);
    TopazOre = new BlockTopazOre(241, 8).setBlockName("TopazOre").setCreativeTab(ModBlocksTab);
    MagicSapling = new BlockMagicSapling(238, 9).setBlockName("MagicSapling").setCreativeTab(ModBlocksTab);
    Portal = new DimensionPortal(245, 12).setBlockName("Portal").setCreativeTab(ModBlocksTab);
    BervloreStone = new BlockBervloreStone(246, 0).setBlockName("BervloreStone").setCreativeTab(ModBlocksTab);
    BervloreSmoothStone = new BlockBervloreSmoothStone(247, 1).setBlockName("BervloreSmoothStone").setCreativeTab(ModBlocksTab);
    BervloreBrick = new BlockBervloreBrick(248, 3).setBlockName("BervloreBrick").setCreativeTab(ModBlocksTab);
    
    LanguageRegistry.addName(ObsidianOre, "ObsidianOre");
    LanguageRegistry.addName(RubyOre, "RubyOre");
    LanguageRegistry.addName(MagicDirt, "MagicDirt");
    LanguageRegistry.addName(MagicGrass, "MagicGrass");
    LanguageRegistry.addName(MagicLog, "MagicLog");
    LanguageRegistry.addName(MagicPlanks, "MagicPlanks");
    LanguageRegistry.addName(MagicLeaf, "MagicLeaf");
    LanguageRegistry.addName(BlockForge, "BlockForge");
    LanguageRegistry.addName(AmethystOre, "AmethystOre");
    LanguageRegistry.addName(SapphireOre, "SapphireOre");
    LanguageRegistry.addName(TopazOre, "TopazOre");
    LanguageRegistry.addName(MagicSapling, "MagicSapling");
    LanguageRegistry.addName(Portal, "Portal Block");
    LanguageRegistry.addName(BervloreStone, "BervloreStone");
    LanguageRegistry.addName(BervloreSmoothStone, "BervloreSmoothStone");
    LanguageRegistry.addName(BervloreBrick, "BervloreBrick");
    
    GameRegistry.registerBlock(ObsidianOre, "ObsidianOre");
    GameRegistry.registerBlock(RubyOre, "RubyOre");
    GameRegistry.registerBlock(MagicDirt, "MagicDirt");
    GameRegistry.registerBlock(MagicGrass, "MagicGrass");
    GameRegistry.registerBlock(MagicLog, "MagicLog");
    GameRegistry.registerBlock(MagicPlanks, "MagicPlanks");
    GameRegistry.registerBlock(MagicLeaf, "MagicLeaf");
    GameRegistry.registerBlock(BlockForge, "BlockForge");
    GameRegistry.registerBlock(AmethystOre, "AmethystOre");
    GameRegistry.registerBlock(SapphireOre, "SapphireOre");
    GameRegistry.registerBlock(TopazOre, "TopazOre");
    GameRegistry.registerBlock(MagicSapling, "MagicSapling");
    GameRegistry.registerBlock(Portal, "Portal");
    GameRegistry.registerBlock(BervloreStone, "BervloreStone");
    GameRegistry.registerBlock(BervloreSmoothStone, "BervloreSmoothStone");
    GameRegistry.registerBlock(BervloreBrick, "BervloreBrick");
    
    GameRegistry.registerWorldGenerator(new WorldGeneratorOres());
    
    GameRegistry.addRecipe(new ItemStack(BlockForge, 1) , new Object[]{"#&#", "# #", "#&#", Character.valueOf('#'), Block.stone, Character.valueOf('&'), Block.cobblestone});
    GameRegistry.addRecipe(new ItemStack(MagicPlanks, 2) , new Object[]{"#", Character.valueOf('#'), MagicLog});
    GameRegistry.addRecipe(new ItemStack(BervloreBrick, 1) , new Object[]{"##", "##", Character.valueOf('#'), BervloreStone});
    
    GameRegistry.addSmelting(BervloreStone.blockID, new ItemStack(BervloreSmoothStone), 0.5F);
    }
    
    @Init
    /*Gems*/public void preInit1(FMLInitializationEvent event)
    {
    ChippedRuby = new GemChippedRuby(500, 0).setItemName("ChippedRuby").setCreativeTab(ModGemsTab);
    ChippedAmethyst = new GemChippedAmethyst(501, 1).setItemName("ChippedAmethyst").setCreativeTab(ModGemsTab);
    ChippedSapphire = new GemChippedSapphire(502, 2).setItemName("ChippedSapphire").setCreativeTab(ModGemsTab);
    ChippedTopaz = new GemChippedTopaz(503, 3).setItemName("ChippedTopaz").setCreativeTab(ModGemsTab);
    FlawedRuby = new GemFlawedRuby(504, 4).setItemName("FlawedRuby").setCreativeTab(ModGemsTab);
    FlawedAmethyst = new GemFlawedAmethyst(505, 5).setItemName("FlawedAmethyst").setCreativeTab(ModGemsTab);
    FlawedSapphire = new GemFlawedSapphire(506, 6).setItemName("FlawedSapphire").setCreativeTab(ModGemsTab);
    FlawedTopaz = new GemFlawedTopaz(507, 7).setItemName("FlawedTopaz").setCreativeTab(ModGemsTab);
    RegularRuby = new GemRegularRuby(508, 8).setItemName("RegularRuby").setCreativeTab(ModGemsTab);
    RegularAmethyst = new GemRegularAmethyst(509, 9).setItemName("RegularAmethyst").setCreativeTab(ModGemsTab);
    RegularSapphire = new GemRegularSapphire(510, 10).setItemName("RegularSapphire").setCreativeTab(ModGemsTab);
    RegularTopaz = new GemRegularTopaz(511, 11).setItemName("RegularTopaz").setCreativeTab(ModGemsTab);
    FlawlessRuby = new GemFlawlessRuby(512, 12).setItemName("FlawlessRuby").setCreativeTab(ModGemsTab);
    FlawlessAmethyst = new GemFlawlessAmethyst(513, 13).setItemName("FlawlessAmethyst").setCreativeTab(ModGemsTab);
    FlawlessSapphire = new GemFlawlessSapphire(514, 14).setItemName("FlawlessSapphire").setCreativeTab(ModGemsTab);
    FlawlessTopaz = new GemFlawlessTopaz(515, 15).setItemName("FlawlessTopaz").setCreativeTab(ModGemsTab);
    PerfectRuby = new GemPerfectRuby(516, 16).setItemName("PerfectRuby").setCreativeTab(ModGemsTab);
    PerfectAmethyst = new GemPerfectAmethyst(517, 17).setItemName("PerfectAmethyst").setCreativeTab(ModGemsTab);
    PerfectSapphire = new GemPerfectSapphire(518, 18).setItemName("PerfectSapphire").setCreativeTab(ModGemsTab);
    PerfectTopaz = new GemPerfectTopaz(519, 19).setItemName("PerfectTopaz").setCreativeTab(ModGemsTab);
    
    LanguageRegistry.addName(ChippedRuby, "ChippedRuby");
    LanguageRegistry.addName(ChippedAmethyst, "ChippedAmethyst");
    LanguageRegistry.addName(ChippedSapphire, "ChippedSapphire");
    LanguageRegistry.addName(ChippedTopaz, "ChippedTopaz");
    LanguageRegistry.addName(FlawedRuby, "FlawedRuby");
    LanguageRegistry.addName(FlawedAmethyst, "FlawedAmethyst");
    LanguageRegistry.addName(FlawedSapphire, "FlawedSapphire");
    LanguageRegistry.addName(FlawedTopaz, "FlawedTopaz");
    LanguageRegistry.addName(RegularRuby, "RegularRuby");
    LanguageRegistry.addName(RegularAmethyst, "RegularAmethyst");
    LanguageRegistry.addName(RegularSapphire, "RegularSapphire");
    LanguageRegistry.addName(RegularTopaz, "RegularTopaz");
    LanguageRegistry.addName(FlawlessRuby, "FlawlessRuby");
    LanguageRegistry.addName(FlawlessAmethyst, "FlawlessAmethyst");
    LanguageRegistry.addName(FlawlessSapphire, "FlawlessSapphire");
    LanguageRegistry.addName(FlawlessTopaz, "FlawlessTopaz");
    LanguageRegistry.addName(PerfectRuby, "PerfectRuby");
    LanguageRegistry.addName(PerfectAmethyst, "PerfectAmethyst");
    LanguageRegistry.addName(PerfectSapphire, "PerfectSapphire");
    LanguageRegistry.addName(PerfectTopaz, "PerfectTopaz");
    
    GameRegistry.addRecipe(new ItemStack(FlawedRuby, 1) , new Object[]{"##", "##", Character.valueOf('#'), ChippedRuby});
    GameRegistry.addRecipe(new ItemStack(FlawedAmethyst, 1) , new Object[]{"##", "##", Character.valueOf('#'), ChippedAmethyst});
    GameRegistry.addRecipe(new ItemStack(FlawedSapphire, 1) , new Object[]{"##", "##", Character.valueOf('#'), ChippedSapphire});
    GameRegistry.addRecipe(new ItemStack(FlawedTopaz, 1) , new Object[]{"##", "##", Character.valueOf('#'), ChippedTopaz});
    GameRegistry.addRecipe(new ItemStack(RegularRuby, 1) , new Object[]{"##", "##", Character.valueOf('#'), FlawedRuby});
    GameRegistry.addRecipe(new ItemStack(RegularAmethyst, 1) , new Object[]{"##", "##", Character.valueOf('#'), FlawedAmethyst});
    GameRegistry.addRecipe(new ItemStack(RegularSapphire, 1) , new Object[]{"##", "##", Character.valueOf('#'), FlawedSapphire});
    GameRegistry.addRecipe(new ItemStack(RegularTopaz, 1) , new Object[]{"##", "##", Character.valueOf('#'), FlawedTopaz});
    GameRegistry.addRecipe(new ItemStack(FlawlessRuby, 1) , new Object[]{"##", "##", Character.valueOf('#'), RegularRuby});
    GameRegistry.addRecipe(new ItemStack(FlawlessAmethyst, 1) , new Object[]{"##", "##", Character.valueOf('#'), RegularAmethyst});
    GameRegistry.addRecipe(new ItemStack(FlawlessSapphire, 1) , new Object[]{"##", "##", Character.valueOf('#'), RegularSapphire});
    GameRegistry.addRecipe(new ItemStack(FlawlessTopaz, 1) , new Object[]{"##", "##", Character.valueOf('#'), RegularTopaz});
    GameRegistry.addRecipe(new ItemStack(PerfectRuby, 1) , new Object[]{"##", "##", Character.valueOf('#'), FlawlessRuby});
    GameRegistry.addRecipe(new ItemStack(PerfectAmethyst, 1) , new Object[]{"##", "##", Character.valueOf('#'), FlawlessAmethyst});
    GameRegistry.addRecipe(new ItemStack(PerfectSapphire, 1) , new Object[]{"##", "##", Character.valueOf('#'), FlawlessSapphire});
    GameRegistry.addRecipe(new ItemStack(PerfectTopaz, 1) , new Object[]{"##", "##", Character.valueOf('#'), FlawlessTopaz});
    }
    
    @Init
    /*Runes*/public void preInit2(FMLInitializationEvent event)
    {
    LanguageRegistry.addName(RuneTablet, "RuneTablet");
    LanguageRegistry.addName(RuneKeelk, "KeelkRune");
    LanguageRegistry.addName(RuneArim, "ArimRune");
    
    GameRegistry.addRecipe(new ItemStack(RuneTablet, 1) , new Object[]{"##", "##", Character.valueOf('#'), Block.cobblestone});
    GameRegistry.addShapelessRecipe(new ItemStack(RuneKeelk, 1), RuneTablet, Item.lightStoneDust);
    GameRegistry.addShapelessRecipe(new ItemStack(RuneArim, 1), RuneTablet, SkeletonRemains);
    
    }
    
    @Init
    /*Materials/Items*/public void preInit3(FMLInitializationEvent event)
    {
    LanguageRegistry.addName(ObsidianDust, "ObsidianDust");
    LanguageRegistry.addName(ObsidianIngot, "ObsidianIngot");
    LanguageRegistry.addName(ObsidianIngotMould, "ObsidianIngotMould");
    LanguageRegistry.addName(MagicSticks, "MagicSticks");
    LanguageRegistry.addName(Wand, "Wand");
    LanguageRegistry.addName(SkeletonRemains, "SkeletonRemains");
    LanguageRegistry.addName(CrushedBervloreStone, "CrushedBervloreStone");
    LanguageRegistry.addName(IronHammer, "IronHammer");
    
    GameRegistry.addRecipe(new ItemStack(ObsidianIngotMould, 1) , new Object[]{"##", "##", Character.valueOf('#'), ObsidianDust});
    GameRegistry.addRecipe(new ItemStack(MagicSticks, 4) , new Object[]{"#", "#", Character.valueOf('#'), MagicPlanks});
    GameRegistry.addRecipe(new ItemStack(Wand, 1) , new Object[]{"#", "&", "&", Character.valueOf('#'), ChippedRuby, Character.valueOf('&'), Item.ingotIron});
    GameRegistry.addRecipe(new ItemStack(IronHammer, 1) , new Object[]{"## ", " %#", "% ", Character.valueOf('#'), Item.ingotIron, Character.valueOf('%'), Item.stick});
    
    GameRegistry.addShapelessRecipe(new ItemStack(CrushedBervloreStone, 4), BervloreStone, IronHammer);
    
    GameRegistry.addSmelting(ObsidianIngotMould.itemID, new ItemStack(ObsidianIngot), 0.5F);
    }
    
    @Init
    /*Tools*/public void preInit4(FMLInitializationEvent event)
    {
    ObsidianPick = new ToolObsidianPick(520, 0, EnumToolMaterial.OBSIDIAN).setItemName("ObsidianPick").setCreativeTab(ModToolsTab);
    ObsidianSword = new ToolObsidianSword(521, 1, EnumToolMaterial.OBSIDIAN).setItemName("ObsidianSword").setCreativeTab(ModToolsTab);
    ObsidianAxe = new ToolObsidianAxe(522, 2, EnumToolMaterial.OBSIDIAN).setItemName("ObsidianAxe").setCreativeTab(ModToolsTab);
    ObsidianSpade = new ToolObsidianSpade(523, 3, EnumToolMaterial.OBSIDIAN).setItemName("ObsidianSpade").setCreativeTab(ModToolsTab);
    ObsidianHoe = new ToolObsidianHoe(524, 4, EnumToolMaterial.OBSIDIAN).setItemName("ObsidianHoe").setCreativeTab(ModToolsTab);
    ObsidianWarHammer = new ToolObsidianWarHammer(525, 5, EnumToolMaterial.OBSIDIAN).setItemName("ObsidianWarHammer").setCreativeTab(ModToolsTab);
    ObsidianKeelkSword = new ToolObsidianKeelkSword(526, 0, EnumToolMaterial.OBSIDIAN).setItemName("ObsidianChippedRuby").setCreativeTab(ModToolsTab).setIconCoord(1, 1);
    
    LanguageRegistry.addName(ObsidianPick, "ObsidianPick");
    LanguageRegistry.addName(ObsidianSword, "ObsidianSword");
    LanguageRegistry.addName(ObsidianAxe, "ObsidianAxe");
    LanguageRegistry.addName(ObsidianSpade, "ObsidianSpade");
    LanguageRegistry.addName(ObsidianHoe, "ObsidianHoe");
    LanguageRegistry.addName(ObsidianWarHammer, "ObsidianWarHammer");
    LanguageRegistry.addName(ObsidianKeelkSword, "ObsidianKeelkSword");
    
    GameRegistry.addRecipe(new ItemStack(ObsidianPick, 1) , new Object[]{"###", " & ", " & ", Character.valueOf('#'), ObsidianIngot, Character.valueOf('&'), MagicSticks});
    GameRegistry.addRecipe(new ItemStack(ObsidianSword, 1) , new Object[]{"#", "#", "&", Character.valueOf('#'), ObsidianIngot, Character.valueOf('&'), MagicSticks});
    GameRegistry.addRecipe(new ItemStack(ObsidianAxe, 1) , new Object[]{"## ", "#& ", " & ", Character.valueOf('#'), ObsidianIngot, Character.valueOf('&'), MagicSticks});
    GameRegistry.addRecipe(new ItemStack(ObsidianSpade, 1) , new Object[]{"#", "&", "&", Character.valueOf('#'), ObsidianIngot, Character.valueOf('&'), MagicSticks});
    GameRegistry.addRecipe(new ItemStack(ObsidianHoe, 1) , new Object[]{"#% ", " % ", " % ", Character.valueOf('#'), ObsidianIngot, Character.valueOf('%'), MagicSticks});
    GameRegistry.addRecipe(new ItemStack(ObsidianWarHammer, 1) , new Object[]{"#&#", "#&#", " & ", Character.valueOf('#'), ObsidianIngot, Character.valueOf('&'), MagicSticks});
    
    GameRegistry.addShapelessRecipe(new ItemStack(ObsidianKeelkSword, 1), ObsidianSword, RuneKeelk);
    
    }
    
    @Init
    /*StoneSwords*/public void preInit5(FMLInitializationEvent event)
    {
    StoneSwordChippedRuby = new StoneSwordChippedRuby(800, 0, EnumToolMaterial.CHIPPEDRUBYSTONE).setItemName("StoneSwordChippedRuby").setCreativeTab(ModGemedToolsTab);
    StoneSwordChippedRuby2 = new StoneSwordChippedRuby2(801, 1, EnumToolMaterial.CHIPPEDRUBYSTONE2).setItemName("StoneSwordChippedRuby2").setCreativeTab(ModGemedToolsTab);
    //chippedruby3 TEXTURE = 2
    //chippedruby4 TEXTURE = 3
    StoneSwordChippedAmethyst = new StoneSwordChippedAmethyst(802, 4, EnumToolMaterial.CHIPPEDAMETHYSTSTONE).setItemName("StoneSwordChippedAmethyst").setCreativeTab(ModGemedToolsTab);
    StoneSwordChippedAmethyst2 = new StoneSwordChippedAmethyst2(803, 5, EnumToolMaterial.CHIPPEDAMETHYSTSTONE2).setItemName("StoneSwordChippedAmethyst2").setCreativeTab(ModGemedToolsTab);
    //chippedamethyst3 TEXTURE = 6
    //chippedamethyst4 TEXTURE = 7
    StoneSwordChippedSapphire = new StoneSwordChippedSapphire(804, 8, EnumToolMaterial.CHIPPEDSAPPHIRESTONE).setItemName("StoneSwordChippedSapphire").setCreativeTab(ModGemedToolsTab);
    StoneSwordChippedSapphire2 = new StoneSwordChippedSapphire2(805, 9, EnumToolMaterial.CHIPPEDSAPPHIRESTONE2).setItemName("StoneSwordChippedSapphire2").setCreativeTab(ModGemedToolsTab);
    //chippedsapphire3 TEXTURE = 10
    //chippedsapphire4 TEXTURE = 11
    
    //chippedtopaz1 TEXTURE = 12
    //chippedtopaz2 TEXTURE = 13
    //chippedtopaz3 TEXTURE = 14
    //chippedtopaz4 TEXTURE = 15
    
    LanguageRegistry.addName(StoneSwordChippedRuby, "StoneSwordChippedRuby");
    LanguageRegistry.addName(StoneSwordChippedRuby2, "StoneSwordChippedRuby2");
    
    LanguageRegistry.addName(StoneSwordChippedAmethyst, "StoneSwordChippedAmethyst");
    LanguageRegistry.addName(StoneSwordChippedAmethyst2, "StoneSwordChippedAmethyst2");
    
    LanguageRegistry.addName(StoneSwordChippedSapphire, "StoneSwordChippedSapphire");
    LanguageRegistry.addName(StoneSwordChippedSapphire2, "StoneSwordChippedSapphire2");
    
    GameRegistry.addRecipe(new ItemStack(StoneSwordChippedRuby, 1) , new Object[]{"#", "&", Character.valueOf('#'), ChippedRuby, Character.valueOf('&'), Item.swordStone});
    GameRegistry.addRecipe(new ItemStack(StoneSwordChippedRuby2, 1) , new Object[]{"#", "&", Character.valueOf('#'), ChippedRuby, Character.valueOf('&'), StoneSwordChippedRuby});
    GameRegistry.addRecipe(new ItemStack(StoneSwordChippedAmethyst, 1) , new Object[]{"#", "&", Character.valueOf('#'), ChippedAmethyst, Character.valueOf('&'), Item.swordStone});
    GameRegistry.addRecipe(new ItemStack(StoneSwordChippedAmethyst2, 1) , new Object[]{"#", "&", Character.valueOf('#'), ChippedAmethyst, Character.valueOf('&'), StoneSwordChippedAmethyst});
    GameRegistry.addRecipe(new ItemStack(StoneSwordChippedSapphire, 1) , new Object[]{"#", "&", Character.valueOf('#'), ChippedSapphire, Character.valueOf('&'), Item.swordStone});
    GameRegistry.addRecipe(new ItemStack(StoneSwordChippedSapphire2, 1) , new Object[]{"#", "&", Character.valueOf('#'), ChippedSapphire, Character.valueOf('&'), StoneSwordChippedSapphire});
    }
    
    @PostInit
    public void PostInit(FMLPostInitializationEvent event)
    {
    LanguageRegistry.addName(HelmetObsidian, "ObsidianHelmet");
    LanguageRegistry.addName(ChestPlateObsidian, "ObsidianChestPlate");
    LanguageRegistry.addName(LegsObsidian, "ObsidianLeggings");
    LanguageRegistry.addName(BootsObsidian, "ObsidianBoots");
    
    ModLoader.addRecipe(new ItemStack(HelmetObsidian, 1) , new Object[]{"###", "# #", Character.valueOf('#'), ObsidianIngot});
    ModLoader.addRecipe(new ItemStack(ChestPlateObsidian, 1) , new Object[]{"# #", "###", "###", Character.valueOf('#'), ObsidianIngot});
    ModLoader.addRecipe(new ItemStack(LegsObsidian, 1) , new Object[]{"###", "# #", "# #", Character.valueOf('#'), ObsidianIngot});
    ModLoader.addRecipe(new ItemStack(BootsObsidian, 1) , new Object[]{"# #", "# #", Character.valueOf('#'), ObsidianIngot});
    }
    
    public void load()
    {
    
    }
    
    public static int dimention = 20;
    
    static int startEntityId = 300;
    
    public static int getUniqueEntityId()
    {
    do
    {
    startEntityId ++;
    }
    while(EntityList.getStringFromID(startEntityId) != null);
    return startEntityId;
    }
    
    public static void registerEntityEgg(Class<? extends Entity> entity, int primaryColor, int secondaryColor)
    {
    int Id = getUniqueEntityId();
    EntityList.IDtoClassMapping.put(Id, entity);
    EntityList.entityEggs.put(Id, new EntityEggInfo(Id, primaryColor, secondaryColor));
    }
    
    /*Custom-Tabs*/
    public static CreativeTabs ModBlocksTab = new TabModBlocks(CreativeTabs.getNextID(), "ModBlocks");
    public static CreativeTabs ModGemsTab = new TabModGems(CreativeTabs.getNextID(), "Gems");
    public static CreativeTabs ModRunesTab = new TabModRunes(CreativeTabs.getNextID(), "Runes");
    public static CreativeTabs ModItemsTab = new TabModItems(CreativeTabs.getNextID(), "ModItems");
    public static CreativeTabs ModToolsTab = new TabModTools(CreativeTabs.getNextID(), "ModTools");
    public static CreativeTabs ModGemedToolsTab = new TabModGemedTools(CreativeTabs.getNextID(), "GemedTools");
    public static CreativeTabs ModMaterialsTab = new TabModMaterials(CreativeTabs.getNextID(), "ModMaterials");
    public static CreativeTabs ModArmorTab = new TabModArmor(CreativeTabs.getNextID(), "ModArmor");
    
    /*Armor*/
    public static Item HelmetObsidian = new ArmorObsidianArmor(1000, EnumArmorMaterial.OBSIDIAN, ModLoader.addArmor("obsidian"), 0).setItemName("ObsidianHelmet").setCreativeTab(ModArmorTab).setIconCoord(0, 0);
    public static Item ChestPlateObsidian = new ArmorObsidianArmor(1001, EnumArmorMaterial.OBSIDIAN, ModLoader.addArmor("obsidian"), 1).setItemName("ObsidianChestPlate").setCreativeTab(ModArmorTab).setIconCoord(0, 1);
    public static Item LegsObsidian = new ArmorObsidianArmor(1002, EnumArmorMaterial.OBSIDIAN, ModLoader.addArmor("obsidian"), 2).setItemName("ObsidianLegs").setCreativeTab(ModArmorTab).setIconCoord(0, 2);
    public static Item BootsObsidian = new ArmorObsidianArmor(1003, EnumArmorMaterial.OBSIDIAN, ModLoader.addArmor("obsidian"), 3).setItemName("ObsidianBoots").setCreativeTab(ModArmorTab).setIconCoord(0, 3);
    
    /*Blocks*/
    public static Block ObsidianOre;
    public static Block RubyOre;
    public static Block MagicDirt;
    public static Block MagicGrass;
    public static Block MagicLog;
    public static Block MagicPlanks;
    public static Block MagicLeaf;
    public static Block BlockForge;
    public static Block AmethystOre;
    public static Block SapphireOre;
    public static Block TopazOre;
    public static Block MagicSapling;
    public static Block Portal;
    public static Block BervloreStone;
    public static Block BervloreSmoothStone;
    public static Block BervloreBrick;
    
    public static int MagicGrassBottom;
    public static int MagicGrassTop;
    public static int MagicGrassSide;
    public static int BlockForgeFront;
    public static int BlockForgeSide;
    public static int BlockForgeTop;
    public static int MagicLogBottom;
    	public static int MagicLogSide;
    
    /*Gems*/
    	public static Item ChippedRuby;
    public static Item ChippedAmethyst;
    public static Item ChippedSapphire;
    public static Item ChippedTopaz;
    public static Item FlawedRuby;
    public static Item FlawedAmethyst;
    public static Item FlawedSapphire;
    public static Item FlawedTopaz;
    public static Item RegularRuby;
    public static Item RegularAmethyst;
    public static Item RegularSapphire;
    public static Item RegularTopaz;
    public static Item FlawlessRuby;
    public static Item FlawlessAmethyst;
    public static Item FlawlessSapphire;
    public static Item FlawlessTopaz;
    public static Item PerfectRuby;
    public static Item PerfectAmethyst;
    public static Item PerfectSapphire;
    public static Item PerfectTopaz;
    
    /*Runes*/
    public static Item RuneTablet = new RuneTablet(5000).setItemName("RuneTablet").setCreativeTab(ModRunesTab).setIconCoord(0, 0);
    public static Item RuneKeelk = new RuneKeelk(5001).setItemName("KeelkRune").setCreativeTab(ModRunesTab).setIconCoord(0, 1);
    public static Item RuneArim = new RuneArim(5002).setItemName("ArimRune").setCreativeTab(ModRunesTab).setIconCoord(0, 2);
    //Aolk
    
    /*Items*/
    public static Item ObsidianDust = new ItemObsidianDust(242, 1).setItemName("ObsidianDust").setCreativeTab(ModMaterialsTab);
    public static Item ObsidianIngot = new ItemObsidianIngot(243, 2).setItemName("ObsidianIngot").setCreativeTab(ModMaterialsTab);
    public static Item ObsidianIngotMould = new ItemObsidianIngotMould(244, 3).setItemName("ObsidianIngotMould").setCreativeTab(ModMaterialsTab);
    public static Item MagicSticks = new ItemMagicSticks(400, 4).setItemName("MagicSticks").setCreativeTab(ModMaterialsTab);
    public static Item Wand = new ItemWand(402, 5).setItemName("Wand").setCreativeTab(ModItemsTab);
    public static Item SkeletonRemains = (new ItemSkeletonRemains(401, 0)).setItemName("SkeletonRemains").setCreativeTab(ModMaterialsTab);
    public static Item CrushedBervloreStone = (new ItemCrushedBervloreStone(403, 1)).setItemName("CrushedBervloreStone").setCreativeTab(ModMaterialsTab);
    public static Item IronHammer = (new ItemIronHammer(404, 2)).setItemName("IronHammer").setCreativeTab(ModItemsTab);
    
    /*Tools*/
    public static Item ObsidianPick;
    public static Item ObsidianSword;
    public static Item ObsidianAxe;
    public static Item ObsidianSpade;
    public static Item ObsidianHoe;
    public static Item ObsidianWarHammer;
    public static Item ObsidianKeelkSword;
    
    /*StoneSwords*/
    public static Item StoneSwordChippedRuby;
    public static Item StoneSwordChippedRuby2;
    
    public static Item StoneSwordChippedAmethyst;
    public static Item StoneSwordChippedAmethyst2;
    
    public static Item StoneSwordChippedSapphire;
    public static Item StoneSwordChippedSapphire2;
    
    }

    And im sorry if its too messy
    I also think that my problem might be something i have not put into my code that i might need to add? If you know if im missing something plz tell me

    oh and i also edited some main class files


    -EnumToolMaterial.java
    -EnumRarity.java
    -GuiMainMenu.java
    -GuiScreen.java
    -EnumArmorMaterial.java

    1. Where is your package declaration?
    2. Move everything from the methods you have added (preInit2, preInit3, etc) into ONE method with the correct annotation. Simple cleaning and organizing of code can go a long way and stop you from having problems like this.
    3. You can avoid editing those classes with Forge. If you edit a class then you have to put the mod straight into the jar, it cannot be loaded from the mods folder. Just don't edit base classes in the first place and you won't have a problem.
    4. Use code tags and spoilers when posting code.
    5. The game may seem as if it 'pauses' but it has crashed and is generating reports, etc.
    Posted in: Modification Development
  • 0

    posted a message on [1.4.7] Undead+ V.0.9.9
    Hey everyone!

    We've just released Undead+ 0.9.9 for Minecraft 1.4.7! We'd appreciated some feedback on it :)
    Posted in: WIP Mods
  • 3

    posted a message on TechGuy's Modding Tutorials
    Quote from PirateCody

    wtf????? No more modloader tuts?!?!?? THIS SUCKS. I WILL NO LONGER BE SUPPORTING THESE TUTORIALS!

    Very well then. Feel free to stay in the past.
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on [Solved]How do you add armor with modloader for 1.0.0
    Quote from SpeedyBlue98

    all you need to do is:
    1. Add and enum armor material called obsidian and setup its properties. (so just mod enumarmormaterial class)
    2. Go into render player class and add obsidian at the end of the list of materials for armor
    3. Make your armor code somthing like this:
    new ItemArmor(ID, EnumArmorMaterial.OBSIDIAN, 5, (0-3)).setItemName("itemname");

    // the 5 is for the render player class if you haven't entered any other armors then obsidian should be the 5 one on the list (starting from 0). 0-3 is the part of the armor(0 = helmet, 1 = chestplate, 2 = leggings, 3 = boots). you will need to make a obsidian_1 and obsidian_2 and put them in the armor folder for rendering purposes.


    Thanks for bumping up a post that is over 10 months old and says it is solved. Please try not to do it again.
    Posted in: Modification Development
  • 0

    posted a message on Redstone Signal Strength
    I'm pretty sure signal strength is stored in metadata so just check for the state that the wire is in then go from there.
    Posted in: Modification Development
  • 1

    posted a message on Using multiple wood types per recipe?
    GameRegistry.addRecipe(new ItemStack(Item.knifeWood), "y ", " x", 'x', stickStack, 'y', Block.planks);
    That should allow the use of all subtypes.
    Posted in: Modification Development
  • To post a comment, please .