Right, my advice to you is a) find a tutorial if you can for something similar to your mod and make sure you arent making silly mistakes, ims ure everyone here has looked through 1000 lines of code just ro realise they accidently but a2 instead of a1 or whatever. :cool.gif: we cant see what errors eclipse is throwing you, please point out lines and what it says and im sure someone can help. I unfortunately wont be able to until tommorow but with the specific errors someone should be able to find the problem. Otherwise its looking for the one hcaracter needle in your coding haystack/#.
Hmmm... I get more ores mod and have a look at the methods.
Rollback Post to RevisionRollBack
Did I help you? There's a little white plus down the bottom. I hope your confused!
First of all, I believe you only need one GenerateSurface in your mod_ file. Then take the for loops for each block and and place them into that method.
public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
{
for(int i = 0; i < (3); i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(15);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_CreatureStones.blockCreeperOre.blockID, 5)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int i = 0; i < (RARITY); i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(70);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_CreatureStones.blockZombieOre.blockID, 5)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int i = 0; i < (2); i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(70);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_CreatureStones.blockSpiderOre.blockID, 5)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
Try right clicking on the net.minecraft.src project in the Package Explorer on the right in eclipse and choose "restore from local history" and find your file. Should work.
Help appreciated, +1 offered, thanks in advance.
Did I help you? There's a little white plus down the bottom. I hope your confused!
Did I help you? There's a little white plus down the bottom. I hope your confused!
Did I help you? There's a little white plus down the bottom. I hope your confused!
Hmmm... I get more ores mod and have a look at the methods.
Did I help you? There's a little white plus down the bottom. I hope your confused!
Recovered.
Did I help you? There's a little white plus down the bottom. I hope your confused!
Did I help you? There's a little white plus down the bottom. I hope your confused!
[/quote]
You needed a semicolon after the MOBBEDSTONE.
I'm Skywalka.
Did I help you? There's a little white plus down the bottom. I hope your confused!
Did I help you? There's a little white plus down the bottom. I hope your confused!