Sorry, I have lots of errors with this, I have no idea what's changed or what to change, here is my full class:
public class InvisOreWorldGeneration implements IWorldGenerator{
@Override
public void generate(Random random, int chunkX, int chunkZ, World world,
IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {
switch(world.provider.getDimensionId()){
case -1 : generateNether(world, random, chunkX * 16, chunkZ * 16);
case 0 : generateSurface(world, random, chunkX * 16, chunkZ * 16);
}
}
private void generateSurface(World world, Random random, int blockX, int blockZ) {
for(int i = 0; i < 10; i++){
int Xcoord = blockX + random.nextInt(16);
int Ycoord = random.nextInt(28);
int Zcoord = blockZ + random.nextInt(16);
new WorldGenMinable(DanArmourMain.invisore, 4).generate(world, random, pos);
}
}
private void generateNether(World world, Random random, int i, int j) {
}
}
I've got an error on new WroldGenMineable because it needs invisore (my block) to be a block state. Also, inserting a BlockPos into the generate method means I have to put it into the generateSurface parameters, which in turn needs one in main generate method, which then causes an error with the @Override meaning that it no longer implements the needed method for IWorldGenerator.