Code:
public int Rate = 20;
public int Height = 120;
public void generateSurface(World world, Random rand, int chunkX, int chunkZ)
{
for(int i = 0; i <= Rate; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(Height);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_MoMushrooms.ArtistsConkBlock.blockID, 5)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int i = 0; i <= Rate; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(Height);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_MoMushrooms.CarbonBallBlock.blockID, 5)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int i = 0; i <= Rate; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(Height);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_MoMushrooms.DryRotBlock.blockID, 5)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int i = 0; i <= Rate; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(Height);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_MoMushrooms.PuffballBlock.blockID, 5)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int i = 0; i <= Rate; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(Height);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_MoMushrooms.HoneyMushroomBlock.blockID, 5)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int i = 0; i <= Rate; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(Height);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_MoMushrooms.ImmatureJackOLanternBlock.blockID, 5)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int i = 0; i <= Rate; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(Height);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_MoMushrooms.MatureJackOLanternBlock.blockID, 5)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int i = 0; i <= Rate; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(Height);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_MoMushrooms.RedCushionHypoxylonBlock.blockID, 5)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int i = 0; i <= Rate; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(Height);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_MoMushrooms.WhiteCheesePolyporeBlock.blockID, 5)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int i = 0; i <= Rate; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(Height);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_MoMushrooms.WhiteMushroomBlock.blockID, 5)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int i = 0; i <= Rate; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(Height);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_MoMushrooms.ChanterelleBlock.blockID, 5)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int i = 0; i <= Rate; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(Height);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_MoMushrooms.FlyAgaricBlock.blockID, 5)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
Irgendwas mache ich noch falsch, aber ich komme net drauf. Ach ja, geiler Mod übrigens