ok soo i recompiled my mod no errors woohoo :smile.gif: i clicked on Startclient.bat and it opened up i got this error
error 1
Mods loaded: 1
ModLoader Beta 1.7.3
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to [email protected].
Please include a description of what you did when the error occured.
--- BEGIN ERROR REPORT e9df3db --------
Generated 25/07/11 7:21 AM
Minecraft: Minecraft Beta 1.7.3
OS: Windows 7 (x86) version 6.1
Java: 1.6.0_21, Sun Microsystems Inc.
VM: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 4200 version 3.3.9836 Compatibility Profile Context, ATI Technologies Inc.
java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:224)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1022)
at net.minecraft.src.ModLoader.init(ModLoader.java:687)
at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:121)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:65)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:158)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:138)
at net.minecraft.client.Minecraft.run(Minecraft.java:435)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 2000
at net.minecraft.src.Block.<init>(Block.java:46)
at net.minecraft.src.Block.<init>(Block.java:75)
at net.minecraft.src.RoxOre.<init>(RoxOre.java:9)
at net.minecraft.src.mod_RoxBlock.<clinit>(mod_RoxBlock.java:8)
... 15 more
--- END ERROR REPORT f42ba295 ----------
Some people might ask for code well here it is :smile.gif:
mod_RoxBlock.java
public class mod_RoxBlock extends BaseMod
{
public static final Block RoxOre = new BlockRox(1002, 0).setHardness(2.5F).setResistance(5.0F).setLightValue(0.2F).setBlockName("RoxOre");
public class RoxOre extends Block
{
protected RoxOre(int i, int j)
{
//This will define what material the block is made of. For an ore, the material should be Material.iron
super(i,j,Material.iron);
}
//This will define what block is dropped when you mine the ore.
//In this case, we want the same block to be dropped.
public int idDropped(int i, Random random)
{
return mod_RoxBlock.RoxOre.blockID;
}
error 1
ModLoader Beta 1.7.3
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to [email protected].
Please include a description of what you did when the error occured.
--- BEGIN ERROR REPORT e9df3db --------
Generated 25/07/11 7:21 AM
Minecraft: Minecraft Beta 1.7.3
OS: Windows 7 (x86) version 6.1
Java: 1.6.0_21, Sun Microsystems Inc.
VM: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 4200 version 3.3.9836 Compatibility Profile Context, ATI Technologies Inc.
java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:224)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1022)
at net.minecraft.src.ModLoader.init(ModLoader.java:687)
at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:121)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:65)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:158)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:138)
at net.minecraft.client.Minecraft.run(Minecraft.java:435)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 2000
at net.minecraft.src.Block.<init>(Block.java:46)
at net.minecraft.src.Block.<init>(Block.java:75)
at net.minecraft.src.RoxOre.<init>(RoxOre.java:9)
at net.minecraft.src.mod_RoxBlock.<clinit>(mod_RoxBlock.java:8)
... 15 more
--- END ERROR REPORT f42ba295 ----------
Some people might ask for code well here it is :smile.gif:
mod_RoxBlock.java
import java.util.Random;
public class mod_RoxBlock extends BaseMod
{
public static final Block RoxOre = new BlockRox(1002, 0).setHardness(2.5F).setResistance(5.0F).setLightValue(0.2F).setBlockName("RoxOre");
public mod_RoxBlock()
{
ModLoader.RegisterBlock(RoxOre);
RoxOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/DwarfCraft/Roxore.png");
ModLoader.AddName(RoxOre, "Rox Ore");
}
public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
{
for (int i = 0; i< 25; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(16);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(RoxOre.blockID, 3)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
public String Version()
{
return "1.7.3";
}
}
import java.util.Random;
public class RoxOre extends Block
{
protected RoxOre(int i, int j)
{
//This will define what material the block is made of. For an ore, the material should be Material.iron
super(i,j,Material.iron);
}
//This will define what block is dropped when you mine the ore.
//In this case, we want the same block to be dropped.
public int idDropped(int i, Random random)
{
return mod_RoxBlock.RoxOre.blockID;
}
}
help please