Jump to content

Plz help me out... been trying to fix for like 3 days....


OwnAgePau

Recommended Posts

I keep getting this error... what to do plz advise .

 

I installed Modloader 1.3.2, Eclipse 1.7.0 with JDK and JRE, MCP 7.2 and Minecraft Forge jenkins 200 build.

I first tried making a mod with modloader and had to many items and blocks... so i needed to use a mod like Forge in order to get more, i made myself 2 nice 256x256.png files 1 including blocks located in my minecraft.jar/mod_Ores

and 1 including items located at my minecraft.jar/mod_Ores/Gui

 

This is one of my block files : (they all look basically the same, except for names)

 

 

package net.minecraft.src;

 

import java.util.Random;

import net.minecraftforge.client.*;

public class BlockAmazoniteBlock extends Block

{

    protected BlockAmazoniteBlock(int par1, int par2)

    {

        super(par1, par2, Material.rock);

        this.setCreativeTab(CreativeTabs.tabBlock);

    }

   

    public int quanitityDropped(int par1, int par2)

    {

    return 1;

    }

    public String getTextureFile()

    {

            return "/mod_Ores/Blocks.png";

    }

    public int idDropped(int par1, Random random, int par2)

    {

    return mod_Ores.AmazoniteBlock.blockID;

    }

 

}

 

 

And this is one of my item files:

 

 

package net.minecraft.src;

 

import net.minecraftforge.client.*;

public class ItemAmazoniteGem extends Item

{

protected ItemAmazoniteGem(int i)

{

super(i);

}

    public String getTextureFile()

    {

        return "/mod_Ores/gui/ItemsMe.png";

    }

}

 

 

 

 

in my mod_Ores file i have big lists of the following (i wont include 2 lines that are the exact same (except for names and numbers))

So heres my mod_Ores file:

 

 

package net.minecraft.src;

 

import java.util.Random;

 

import net.minecraftforge.client.*;

 

public class mod_Ores extends BaseMod

{

//Blocks

//Ores

public static final Block Amazoniteore =  (new BlockAmazoniteore (150,30)).setHardness(4.0F).setResistance(1F).setLightValue(0.5F).setStepSound(Block.soundStoneFootstep).setBlockName("Amazoniteore"); 

 

//Items

//Gems

public static final Item AmazoniteGem = (new ItemAmazoniteGem(1000)).setIconIndex(0).setItemName("AmazoniteGem");

//Tools

public static final Item BronzePickaxe = (new ItemPickaxe(1048,EnumToolMaterial.BRONZE).setIconIndex(87).setItemName("BronzePickaxe"));

 

 

//Armour

public static final Item BronzeHelmet = (new ItemArmorBronze(1108,EnumArmorMaterial.BRONZE,ModLoader.addArmor("Bronze"),0).setIconIndex(48).setItemName("BronzeHelmet"));

 

 

NOTE : THESE armour files and things somehow give errors aswell, how to do it in a different way or what to change?

armour file :

 

 

 

package net.minecraft.src;

 

public class ItemArmorBronze extends ItemArmor

{

    /** Holds the 'base' maxDamage that each armorType have. */

    private static final int[] maxDamageArray = new int[] {8, 10, 7, 6};

 

    /**

    * Stores the armor type: 0 is helmet, 1 is plate, 2 is legs and 3 is boots

    */

    public final int armorType;

 

    /** Holds the amount of damage that the armor reduces at full durability. */

    public final int damageReduceAmount;

 

    /**

    * Used on RenderPlayer to select the correspondent armor to be rendered on the player: 0 is cloth, 1 is chain, 2 is

    * iron, 3 is diamond and 4 is gold.

    */

    public final int renderIndex;

 

    /** The EnumArmorMaterial used for this ItemArmor */

    private final EnumArmorMaterial material;

 

    public ItemArmorBronze(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4)

    {

        super(par1,par2EnumArmorMaterial,par3,par4);

        this.material = par2EnumArmorMaterial;

        this.armorType = par4;

        this.renderIndex = par3;

        this.damageReduceAmount = par2EnumArmorMaterial.getDamageReductionAmount(par4);

        this.setMaxDamage(par2EnumArmorMaterial.getDurability(par4));

        this.maxStackSize = 1;

        this.setTabToDisplayOn(CreativeTabs.tabCombat);

    }

 

    /**

    * Return the enchantability factor of the item, most of the time is based on material.

    */

    public int getItemEnchantability()

    {

        return this.material.getEnchantability();

    }

 

    /**

    * Returns the 'max damage' factor array for the armor, each piece of armor have a durability factor (that gets

    * multiplied by armor material factor)

    */

    static int[] getMaxDamageArray()

    {

        return maxDamageArray;

    }

}

 

 

 

then i also have

the following in the public void

 

 

public void load()

{

MinecraftForgeClient.preloadTexture("/mod_Ores/Blocks.png");

        MinecraftForgeClient.preloadTexture("/mod_Ores/gui/ItemsMe.png");

 

 

//Registering

 

ModLoader.registerBlock(Amazoniteore);

 

//Adding Names

//Ores

ModLoader.addName(Amazoniteore,"Amazonite Ore");

 

//Crafting Recipes

 

 

//Blocks

ModLoader.addRecipe(new ItemStack(mod_Ores.AmazoniteBlock, 1), new Object[]

{

"XXX", "XXX", "XXX",  'X', mod_Ores.AmazoniteGem //Crafting Line 

});

ModLoader.addShapelessRecipe(new ItemStack(mod_Ores.AmazoniteGem, 1), new Object[]

{

mod_Ores.AmazoniteUncut, mod_Ores.Polisher , mod_Ores.PolisherTowel //Crafting Line 

});

 

 

//Smelting Recipes

 

ModLoader.addSmelting(mod_Ores.Cobaltore.blockID, new ItemStack(mod_Ores.CobaltIngot));

 

 

 

} <- this closes the public void

 

public void generateSurface(World world, Random random, int chunkX, int chunkZ)

{

for (int i = 0; i < 7; i++)

{

int randPosX = chunkX + random.nextInt(16);

int randPosY = random.nextInt(32); //Rarerity 6 (1-15) 1 is very common 15 is extremely rare

int randPosZ = chunkZ + random.nextInt(16);

(new WorldGenMinable(mod_Ores.Amazoniteore.blockID, 7)).generate(world, random, randPosX, randPosY, randPosZ);

}

 

and at the very bottom of the page i have this

 

 

  public int addFuel(int i, int j)

    {

    if (i == mod_Ores.UraniumLiquid.shiftedIndex)

    {

    return 160000;

    }

        return 0;

    }

 

public String getVersion()

{

return "1.3.2";

}

}

 

 

 

 

 

 

All i did was trying to add items and blocks with Minecraft Forge and giving the recipes, and i wanted to generate the ores ofcourse.

 

Error

 

 

java.lang.ExceptionInInitializerError

2012-08-23 19:08:32 [iNFO] [sTDERR] at java.lang.Class.forName0(Native Method)

2012-08-23 19:08:32 [iNFO] [sTDERR] at java.lang.Class.forName(Unknown Source)

2012-08-23 19:08:32 [iNFO] [sTDERR] at cpw.mods.fml.common.modloader.ModLoaderModContainer.constructMod(ModLoaderModContainer.java:501)

2012-08-23 19:08:32 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2012-08-23 19:08:32 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2012-08-23 19:08:32 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2012-08-23 19:08:32 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source)

2012-08-23 19:08:32 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)

2012-08-23 19:08:32 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2012-08-23 19:08:32 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)

2012-08-23 19:08:32 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)

2012-08-23 19:08:32 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:268)

2012-08-23 19:08:32 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:127)

2012-08-23 19:08:32 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2012-08-23 19:08:32 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2012-08-23 19:08:32 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2012-08-23 19:08:32 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source)

2012-08-23 19:08:32 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)

2012-08-23 19:08:32 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2012-08-23 19:08:32 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)

2012-08-23 19:08:32 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)

2012-08-23 19:08:32 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:268)

2012-08-23 19:08:32 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:85)

2012-08-23 19:08:32 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.loadMods(Loader.java:420)

2012-08-23 19:08:32 [iNFO] [sTDERR] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:192)

2012-08-23 19:08:32 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:402)

2012-08-23 19:08:32 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:734)

2012-08-23 19:08:32 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source)

2012-08-23 19:08:32 [iNFO] [sTDERR] Caused by: java.lang.ArrayIndexOutOfBoundsException: 125

2012-08-23 19:08:32 [iNFO] [sTDERR] at net.minecraft.src.EnumArmorMaterial.getDamageReductionAmount(EnumArmorMaterial.java:56)

2012-08-23 19:08:32 [iNFO] [sTDERR] at net.minecraft.src.ItemArmor.<init>(ItemArmor.java:31)

2012-08-23 19:08:32 [iNFO] [sTDERR] at net.minecraft.src.ItemArmorBronze.<init>(ItemArmorBronze.java:27)

2012-08-23 19:08:32 [iNFO] [sTDERR] at net.minecraft.src.mod_Ores.<clinit>(mod_Ores.java:219)

2012-08-23 19:08:32 [iNFO] [sTDERR] ... 28 more

 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • https://pastebin.com/VwpAW6PX My game crashes upon launch when trying to implement the Oculus mod to this mod compilation, above is the crash report, I do not know where to begin to attempt to fix this issue and require assistance.
    • https://youtube.com/shorts/gqLTSMymgUg?si=5QOeSvA4TTs-bL46
    • CubeHaven is a SMP server with unique features that can't be found on the majority of other servers! Java: MC.CUBEHAVEN.NET Bedrock: MC.CUBEHAVEN.NET:19132 3 different stores: - CubeHaven Store: Our store to purchase using real money. - Bitcoin Store: Store for Bitcoin. Bitcoin can be earned from playing the server. Giving options for players if they want to spend real money or grind to obtain exclusive packages. - Black Market: A hidden store for trading that operates outside our traditional stores, like custom enchantments, exclusive items and more. Some of our features include: Rank Up: Progress through different ranks to unlock new privileges and perks. 📈 Skills: RPG-style skill system that enhances your gaming experience! 🎮 Leaderboards: Compete and shine! Top players are rewarded weekly! 🏆 Random Teleporter: Travel instantly across different worlds with a click! 🌐 Custom World Generation: Beautifully generated world. 🌍 Dungeons: Explore challenging and rewarding dungeons filled with treasures and monsters. 🏰 Kits: Unlock ranks and gain access to various kits. 🛠️ Fishing Tournament: Compete in a friendly fishing tournament! 🎣 Chat Games: Enjoy games right within the chat! 🎲 Minions: Get some help from your loyal minions. 👥 Piñata Party: Enjoy a festive party with Piñatas! 🎉 Quests: Over 1000 quests that you can complete! 📜 Bounty Hunter: Set a bounty on a player's head. 💰 Tags: Displayed on nametags, in the tab list, and in chat. 🏷️ Coinflip: Bet with other players on coin toss outcomes, victory, or defeat! 🟢 Invisible & Glowing Frames: Hide your frames for a cleaner look or apply a glow to it for a beautiful look. 🔲✨[ Player Warp: Set your own warp points for other players to teleport to. 🌟 Display Shop: Create your own shop and sell to other players! 🛒 Item Skins: Customize your items with unique skins. 🎨 Pets: Your cute loyal companion to follow you wherever you go! 🐾 Cosmetics: Enhance the look of your character with beautiful cosmetics! 💄 XP-Bottle: Store your exp safely in a bottle for later use! 🍶 Chest & Inventory Sorting: Keep your items neatly sorted in your inventory or chest! 📦 Glowing: Stand out from other players with a colorful glow! ✨ Player Particles: Over 100 unique particle effects to show off. 🎇 Portable Inventories: Over virtual inventories with ease. 🧳 And a lot more! Become part of our growing community today! Discord: https://cubehaven.net/discord Java: MC.CUBEHAVEN.NET Bedrock: MC.CUBEHAVEN.NET:19132
    • # Problematic frame: # C [libopenal.so+0x9fb4d] It is always the same issue - this refers to the Linux OS - so your system may prevent Java from working   I am not familiar with Linux - check for similar/related issues  
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.