Removed emerald ore from the Canyon and Moor to balance the amount of biomes with emerald with vanilla

This commit is contained in:
Matt Caughey 2014-05-22 12:27:10 -04:00
parent cede836d59
commit 574bfc3e9b
3 changed files with 40 additions and 46 deletions

View file

@ -52,27 +52,25 @@ public class BiomeGenCanyon extends BOPBiome
} }
@Override @Override
public void decorate(World world, Random random, int chunkX, int chunkZ) public void decorate(World world, Random random, int chunkX, int chunkZ)
{ {
super.decorate(world, random, chunkX, chunkZ); super.decorate(world, random, chunkX, chunkZ);
int var5 = 12 + random.nextInt(6); int var5 = 12 + random.nextInt(6);
for (int var6 = 0; var6 < var5; ++var6) for (int var6 = 0; var6 < var5; ++var6)
{ {
int x = chunkX + random.nextInt(16); int x = chunkX + random.nextInt(16);
int y = random.nextInt(28) + 4; int y = random.nextInt(28) + 4;
int z = chunkZ + random.nextInt(16); int z = chunkZ + random.nextInt(16);
//TODO: getBlock() Block block = world.getBlock(x, y, z);
Block block = world.getBlock(x, y, z);
if (block != null && block.isReplaceableOreGen(world, x, y, z, Blocks.stone)) if (block != null && block.isReplaceableOreGen(world, x, y, z, Blocks.stone))
{ {
//TODO: setBlock() world.setBlock(x, y, z, BOPBlockHelper.get("gemOre"), 2, 2);
world.setBlock(x, y, z, Blocks.emerald_ore, 0, 2); }
} }
} }
}
@Override @Override
//TODO: getBiomeFoliageColor() //TODO: getBiomeFoliageColor()

View file

@ -56,9 +56,9 @@ public class BiomeGenMoor extends BOPBiome
} }
@Override @Override
public void decorate(World world, Random random, int chunkX, int chunkZ) public void decorate(World world, Random random, int chunkX, int chunkZ)
{ {
super.decorate(world, random, chunkX, chunkZ); super.decorate(world, random, chunkX, chunkZ);
int var5 = 12 + random.nextInt(6); int var5 = 12 + random.nextInt(6);
for (int var6 = 0; var6 < var5; ++var6) for (int var6 = 0; var6 < var5; ++var6)
@ -67,16 +67,14 @@ public class BiomeGenMoor extends BOPBiome
int y = random.nextInt(28) + 4; int y = random.nextInt(28) + 4;
int z = chunkZ + random.nextInt(16); int z = chunkZ + random.nextInt(16);
//TODO: getBlock()
Block block = world.getBlock(x, y, z); Block block = world.getBlock(x, y, z);
if (block != null && block.isReplaceableOreGen(world, x, y, z, Blocks.stone)) if (block != null && block.isReplaceableOreGen(world, x, y, z, Blocks.stone))
{ {
//TODO: setBlock() world.setBlock(x, y, z, BOPBlockHelper.get("gemOre"), 10, 2);
world.setBlock(x, y, z, Blocks.emerald_ore, 0, 2);
} }
} }
} }
@Override @Override
//TODO: getBiomeGrassColor() //TODO: getBiomeGrassColor()

View file

@ -56,27 +56,25 @@ public class BiomeGenCanyonRavine extends BOPSubBiome
} }
@Override @Override
public void decorate(World world, Random random, int chunkX, int chunkZ) public void decorate(World world, Random random, int chunkX, int chunkZ)
{ {
super.decorate(world, random, chunkX, chunkZ); super.decorate(world, random, chunkX, chunkZ);
int var5 = 12 + random.nextInt(6); int var5 = 12 + random.nextInt(6);
for (int var6 = 0; var6 < var5; ++var6) for (int var6 = 0; var6 < var5; ++var6)
{ {
int x = chunkX + random.nextInt(16); int x = chunkX + random.nextInt(16);
int y = random.nextInt(28) + 4; int y = random.nextInt(28) + 4;
int z = chunkZ + random.nextInt(16); int z = chunkZ + random.nextInt(16);
//TODO: getBlock() Block block = world.getBlock(x, y, z);
Block block = world.getBlock(x, y, z);
if (block != null && block.isReplaceableOreGen(world, x, y, z, Blocks.stone)) if (block != null && block.isReplaceableOreGen(world, x, y, z, Blocks.stone))
{ {
//TODO: setBlock() world.setBlock(x, y, z, BOPBlockHelper.get("gemOre"), 2, 2);
world.setBlock(x, y, z, Blocks.emerald_ore, 0, 2); }
} }
} }
}
@Override @Override
//TODO: getBiomeFoliageColor() //TODO: getBiomeFoliageColor()