Package net.minecraft.world.gen.feature

Examples of net.minecraft.world.gen.feature.WorldGenMinable


        int firstBlockXCoord = 16 * chunkX + random.nextInt(16);
        int firstBlockZCoord = 16 * chunkZ + random.nextInt(16);
        ItemStack itemStack = EnumOreFrequency.getRandomOre(random);
        for (int l = 0; l < 200; l++) {
          int firstBlockYCoord = random.nextInt(245) + 6;
          WorldGenMinable mineable = new WorldGenMinable(Block.getBlockFromItem(itemStack.getItem()), itemStack.getItemDamage(), random.nextInt(20), Blocks.bedrock);
          mineable.generate(world, random, firstBlockXCoord, firstBlockYCoord, firstBlockZCoord);
        }
      }
    }
  }
View Full Code Here


            zPos = this.hellRNG.nextInt(128);
            i2 = blockZ + this.hellRNG.nextInt(16) + 8;
            (new WorldGenGlowStone2()).generate(this.worldObj, this.hellRNG, yPos, zPos, i2);
        }

        WorldGenMinable worldgenminable = new WorldGenMinable(Blocks.quartz_ore, 13, Blocks.netherrack);
        int j2;

        for (yPos = 0; yPos < 16; ++yPos)
        {
            zPos = blockX + this.hellRNG.nextInt(16);
            i2 = this.hellRNG.nextInt(108) + 10;
            j2 = blockZ + this.hellRNG.nextInt(16);
            worldgenminable.generate(this.worldObj, this.hellRNG, zPos, i2, j2);
        }

        for (yPos = 0; yPos < 16; ++yPos)
        {
            zPos = blockX + this.hellRNG.nextInt(16);
View Full Code Here

      for(int i = 0; i < Mekanism.osmiumPerChunk; i++)
      {
        int randPosX = (chunkX*16) + random.nextInt(16);
        int randPosY = random.nextInt(60);
        int randPosZ = (chunkZ*16) + random.nextInt(16);
        new WorldGenMinable(Mekanism.OreBlock, 0, 8, Blocks.stone).generate(world, random, randPosX, randPosY, randPosZ);
      }

      for(int i = 0; i < Mekanism.copperPerChunk; i++)
      {
        int randPosX = (chunkX*16) + random.nextInt(16);
        int randPosY = random.nextInt(60);
        int randPosZ = (chunkZ*16) + random.nextInt(16);
        new WorldGenMinable(Mekanism.OreBlock, 1, 8, Blocks.stone).generate(world, random, randPosX, randPosY, randPosZ);
      }

      for(int i = 0; i < Mekanism.tinPerChunk; i++)
      {
        int randPosX = (chunkX*16) + random.nextInt(16);
        int randPosY = random.nextInt(60);
        int randPosZ = (chunkZ*16) + random.nextInt(16);
        new WorldGenMinable(Mekanism.OreBlock, 2, 8, Blocks.stone).generate(world, random, randPosX, randPosY, randPosZ);
      }
     
      for(int i = 0; i < Mekanism.saltPerChunk; i++)
      {
        int randPosX = (chunkX*16) + random.nextInt(16);
View Full Code Here

    Block normal = AEApi.instance().blocks().blockQuartzOre.block();
    Block charged = AEApi.instance().blocks().blockQuartzOreCharged.block();

    if ( normal != null && charged != null )
    {
      oreNormal = new WorldGenMinable( normal, 0, AEConfig.instance.quartzOresPerCluster, Blocks.stone );
      oreCharged = new WorldGenMinable( charged, 0, AEConfig.instance.quartzOresPerCluster, Blocks.stone );
    }
    else
      oreNormal = oreCharged = null;
  }
View Full Code Here

    int scale = (int) Math.round( r.nextGaussian() * Math.sqrt( oreDepthMultiplier ) + oreDepthMultiplier );

    for (int x = 0; x < (r.nextBoolean() ? scale * 2 : scale) / 2; ++x)
    {
      boolean isCharged = r.nextFloat() > AEConfig.instance.spawnChargedChance;
      WorldGenMinable whichOre = isCharged ? oreCharged : oreNormal;

      if ( WorldGenRegistry.instance.isWorldGenEnabled( isCharged ? WorldGenType.ChargedCertusQuartz : WorldGenType.CertusQuartz, w ) )
      {
        int cx = chunkX * 16 + r.nextInt( 22 );
        int cy = r.nextInt( 40 * seaLevel / 64 ) + r.nextInt( 22 * seaLevel / 64 ) + 12 * seaLevel / 64;
        int cz = chunkZ * 16 + r.nextInt( 22 );
        whichOre.generate( w, r, cx, cy, cz );
      }
    }

  }
View Full Code Here

        this.fringeArea = fringeArea;
        this.yLevel = yLevel;
        this.yRange = yRange;
        this.noiseSeed = noiseSeed;
        if (density >= 4)
            oreGen = new WorldGenMinable(BlockOre.getBlock(), ore.ordinal(), density, Blocks.stone);
        else
            oreGen = new WorldGenSmallDeposits(BlockOre.getBlock(), ore.ordinal(), density, Blocks.stone);
    }
View Full Code Here

  private void generateSurface(World world, Random random, int i, int j) {
    for(int k = 0; k < 5; k++){
      int Xcoord = i + random.nextInt(16);
      int Ycoord = random.nextInt(14);
      int Zcoord = j + random.nextInt(16);
      (new WorldGenMinable(Will11690.mod.MechaniCraft.Common.MechaniCraft.SapphireOre.blockID, 8)).generate(world, random, Xcoord, Ycoord, Zcoord);
    }
    for(int l = 0; l < 5; l++){
      int Xcoord = i + random.nextInt(16);
      int Ycoord = random.nextInt(14);
      int Zcoord = j + random.nextInt(16);
      (new WorldGenMinable(Will11690.mod.MechaniCraft.Common.MechaniCraft.PureOre.blockID, 8)).generate(world, random, Xcoord, Ycoord, Zcoord);
    }
    for(int m = 0; m < 5; m++){
      int Xcoord = i + random.nextInt(16);
      int Ycoord = random.nextInt(14);
      int Zcoord = j + random.nextInt(16);
      (new WorldGenMinable(Will11690.mod.MechaniCraft.Common.MechaniCraft.EvilOre.blockID, 8)).generate(world, random, Xcoord, Ycoord, Zcoord);
    }
    for(int n = 0; n < 5; n++){
      int Xcoord = i + random.nextInt(16);
      int Ycoord = random.nextInt(14);
      int Zcoord = j + random.nextInt(16);
      (new WorldGenMinable(Will11690.mod.MechaniCraft.Common.MechaniCraft.RubyOre.blockID, 8)).generate(world, random, Xcoord, Ycoord, Zcoord);
    }
    for(int k = 0; k < 6; k++){
      int Xcoord = i + random.nextInt(16);
      int Ycoord = random.nextInt(60);
      int Zcoord = j + random.nextInt(16);
      (new WorldGenMinable(Will11690.mod.MechaniCraft.Common.MechaniCraft.CopperOre.blockID, 8)).generate(world, random, Xcoord, Ycoord, Zcoord);
    }
    for(int k = 0; k < 6; k++){
      int Xcoord = i + random.nextInt(16);
      int Ycoord = random.nextInt(60);
      int Zcoord = j + random.nextInt(16);
      (new WorldGenMinable(Will11690.mod.MechaniCraft.Common.MechaniCraft.TinOre.blockID, 8)).generate(world, random, Xcoord, Ycoord, Zcoord);
    }
  }
View Full Code Here

public class TBaseWorldGenerator implements IWorldGenerator
{
    public TBaseWorldGenerator()
    {
        copper = new WorldGenMinable(TinkerWorld.oreSlag, 3, 8, Blocks.stone);
        tin = new WorldGenMinable(TinkerWorld.oreSlag, 4, 8, Blocks.stone);
        aluminum = new WorldGenMinable(TinkerWorld.oreSlag, 5, 6, Blocks.stone);

        cobalt = new WorldGenMinable(TinkerWorld.oreSlag, 1, 3, Blocks.netherrack);
        ardite = new WorldGenMinable(TinkerWorld.oreSlag, 2, 3, Blocks.netherrack);

        ironBush = new OreberryBushGen(TinkerWorld.oreBerry, 12, 12);
        goldBush = new OreberryBushGen(TinkerWorld.oreBerry, 13, 6);
        copperBush = new OreberryBushGen(TinkerWorld.oreBerry, 14, 12);
        tinBush = new OreberryBushGen(TinkerWorld.oreBerry, 15, 12);
View Full Code Here

TOP

Related Classes of net.minecraft.world.gen.feature.WorldGenMinable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.