Hey guys! My ore spawns way too much... I want my ore to be more rare then diamond, but not as annoyingly rare as emerald.
Here is the SuperOreWorldGeneration code:
package ajaygross137.MyFirstMod.worldGen;
import java.util.Random;
import ajaygross137.MyFirstMod.common.MyFirstMod;
import net.minecraft.world.World;
import net.minecraft.world.chunk.IChunkProvider;
import net.minecraft.world.gen.feature.WorldGenMinable;
import cpw.mods.fml.common.IWorldGenerator;
public class SuperOreWorldGeneration implements IWorldGenerator {
@Override
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {
switch(world.provider.dimensionId) {
case 0:
generateSurface(world, random, chunkX*16, chunkZ*16);
break;
}
}
private void generateSurface(World world, Random random, int i, int j) {
for (int k = 0; k < 25; k++) {
int chunkX = i + random.nextInt(16);
int chunkY = random.nextInt(16);
int chunkZ = j + random.nextInt(16);
(new WorldGenMinable(MyFirstMod.SuperOre.blockID, ).generate(world, random, chunkX, chunkY, chunkZ);
}
}
}