// Path: src/main/java/matgm50/twarden/block/ModBlocks.java
// public class ModBlocks {
// 
//     public static Block blockExubitura = new BlockExubitura();
//     public static Block blockInfusedQuartzNormal = new BlockQuartzNormal();
//     public static Block blockInfusedQuartzChiseled = new BlockQuartzChiseled();
//     public static Block blockInfusedQuartzPillar = new BlockQuartzPillar();
//     public static Block blockInfusedQuartzSlab = new BlockQuartzSlab();
//     public static Block blockInfusedQuartzStair = new BlockQuartzStair();
//     public static Block blockWitor = new BlockWitor();
// 
//     public static void init() {
// 
//         GameRegistry.registerBlock(blockExubitura, BlockLib.EXUBITURA_NAME);
//         GameRegistry.registerBlock(blockInfusedQuartzNormal, BlockLib.QUARTZ_NORMAL_NAME);
//         GameRegistry.registerBlock(blockInfusedQuartzChiseled, BlockLib.QUARTZ_CHISELED_NAME);
//         GameRegistry.registerBlock(blockInfusedQuartzPillar, BlockLib.QUARTZ_PILLAR_NAME);
//         GameRegistry.registerBlock(blockInfusedQuartzSlab, BlockLib.QUARTZ_SLAB_NAME);
//         GameRegistry.registerBlock(blockInfusedQuartzStair, BlockLib.QUARTZ_STAIR_NAME);
//         GameRegistry.registerBlock(blockWitor, BlockLib.BLOCK_WITOR_NAME);
// 
//         GameRegistry.registerTileEntity(TileWitor.class, BlockLib.TILE_WITOR_NAME);
// 
//     }
// 
// }


import cpw.mods.fml.common.IWorldGenerator;
import matgm50.twarden.block.ModBlocks;
import net.minecraft.world.World;
import net.minecraft.world.chunk.IChunkProvider;
import java.util.Random;
package matgm50.twarden.world;



/**
 * Created by MasterAbdoTGM50 on 5/22/2014.
 */

public class GenExubitura implements IWorldGenerator {

    @Override
    public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {

        int X = chunkX * 16 + random.nextInt(128);
        int Z = chunkZ * 16 + random.nextInt(128);
        int Y = world.getHeightValue(X, Z);

// Path: src/main/java/matgm50/twarden/block/ModBlocks.java
// public class ModBlocks {
// 
//     public static Block blockExubitura = new BlockExubitura();
//     public static Block blockInfusedQuartzNormal = new BlockQuartzNormal();
//     public static Block blockInfusedQuartzChiseled = new BlockQuartzChiseled();
//     public static Block blockInfusedQuartzPillar = new BlockQuartzPillar();
//     public static Block blockInfusedQuartzSlab = new BlockQuartzSlab();
//     public static Block blockInfusedQuartzStair = new BlockQuartzStair();
//     public static Block blockWitor = new BlockWitor();
// 
//     public static void init() {
// 
//         GameRegistry.registerBlock(blockExubitura, BlockLib.EXUBITURA_NAME);
//         GameRegistry.registerBlock(blockInfusedQuartzNormal, BlockLib.QUARTZ_NORMAL_NAME);
//         GameRegistry.registerBlock(blockInfusedQuartzChiseled, BlockLib.QUARTZ_CHISELED_NAME);
//         GameRegistry.registerBlock(blockInfusedQuartzPillar, BlockLib.QUARTZ_PILLAR_NAME);
//         GameRegistry.registerBlock(blockInfusedQuartzSlab, BlockLib.QUARTZ_SLAB_NAME);
//         GameRegistry.registerBlock(blockInfusedQuartzStair, BlockLib.QUARTZ_STAIR_NAME);
//         GameRegistry.registerBlock(blockWitor, BlockLib.BLOCK_WITOR_NAME);
// 
//         GameRegistry.registerTileEntity(TileWitor.class, BlockLib.TILE_WITOR_NAME);
// 
//     }
// 
// }


// Path: src/main/java/matgm50/twarden/world/GenExubitura.java
import cpw.mods.fml.common.IWorldGenerator;
import matgm50.twarden.block.ModBlocks;
import net.minecraft.world.World;
import net.minecraft.world.chunk.IChunkProvider;
import java.util.Random;

package matgm50.twarden.world;



/**
 * Created by MasterAbdoTGM50 on 5/22/2014.
 */

public class GenExubitura implements IWorldGenerator {

    @Override
    public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {

        int X = chunkX * 16 + random.nextInt(128);
        int Z = chunkZ * 16 + random.nextInt(128);
        int Y = world.getHeightValue(X, Z);

        if (world.isAirBlock(X, Y, Z) && ModBlocks.blockExubitura.canBlockStay(world, X, Y, Z) && random.nextInt(1000) <= 10) {