diff --git a/src/main/java/biomesoplenty/common/biomes/overworld/BiomeGenCanyon.java b/src/main/java/biomesoplenty/common/biomes/overworld/BiomeGenCanyon.java index 8503609c4..b487f8c6d 100644 --- a/src/main/java/biomesoplenty/common/biomes/overworld/BiomeGenCanyon.java +++ b/src/main/java/biomesoplenty/common/biomes/overworld/BiomeGenCanyon.java @@ -52,27 +52,25 @@ public class BiomeGenCanyon extends BOPBiome } @Override - public void decorate(World world, Random random, int chunkX, int chunkZ) - { - super.decorate(world, random, chunkX, chunkZ); - int var5 = 12 + random.nextInt(6); + public void decorate(World world, Random random, int chunkX, int chunkZ) + { + super.decorate(world, random, chunkX, chunkZ); + int var5 = 12 + random.nextInt(6); - for (int var6 = 0; var6 < var5; ++var6) - { - int x = chunkX + random.nextInt(16); - int y = random.nextInt(28) + 4; - int z = chunkZ + random.nextInt(16); - - //TODO: getBlock() - Block block = world.getBlock(x, y, z); + for (int var6 = 0; var6 < var5; ++var6) + { + int x = chunkX + random.nextInt(16); + int y = random.nextInt(28) + 4; + int z = chunkZ + random.nextInt(16); - if (block != null && block.isReplaceableOreGen(world, x, y, z, Blocks.stone)) - { - //TODO: setBlock() - world.setBlock(x, y, z, Blocks.emerald_ore, 0, 2); - } - } - } + Block block = world.getBlock(x, y, z); + + if (block != null && block.isReplaceableOreGen(world, x, y, z, Blocks.stone)) + { + world.setBlock(x, y, z, BOPBlockHelper.get("gemOre"), 2, 2); + } + } + } @Override //TODO: getBiomeFoliageColor() diff --git a/src/main/java/biomesoplenty/common/biomes/overworld/BiomeGenMoor.java b/src/main/java/biomesoplenty/common/biomes/overworld/BiomeGenMoor.java index 960318ef8..c21edf6c1 100644 --- a/src/main/java/biomesoplenty/common/biomes/overworld/BiomeGenMoor.java +++ b/src/main/java/biomesoplenty/common/biomes/overworld/BiomeGenMoor.java @@ -56,9 +56,9 @@ public class BiomeGenMoor extends BOPBiome } @Override - public void decorate(World world, Random random, int chunkX, int chunkZ) - { - super.decorate(world, random, chunkX, chunkZ); + public void decorate(World world, Random random, int chunkX, int chunkZ) + { + super.decorate(world, random, chunkX, chunkZ); int var5 = 12 + random.nextInt(6); for (int var6 = 0; var6 < var5; ++var6) @@ -66,17 +66,15 @@ public class BiomeGenMoor extends BOPBiome int x = chunkX + random.nextInt(16); int y = random.nextInt(28) + 4; int z = chunkZ + random.nextInt(16); - - //TODO: getBlock() + Block block = world.getBlock(x, y, z); if (block != null && block.isReplaceableOreGen(world, x, y, z, Blocks.stone)) { - //TODO: setBlock() - world.setBlock(x, y, z, Blocks.emerald_ore, 0, 2); + world.setBlock(x, y, z, BOPBlockHelper.get("gemOre"), 10, 2); } } - } + } @Override //TODO: getBiomeGrassColor() diff --git a/src/main/java/biomesoplenty/common/biomes/overworld/sub/BiomeGenCanyonRavine.java b/src/main/java/biomesoplenty/common/biomes/overworld/sub/BiomeGenCanyonRavine.java index 4df4f78c6..f6ebd4aef 100644 --- a/src/main/java/biomesoplenty/common/biomes/overworld/sub/BiomeGenCanyonRavine.java +++ b/src/main/java/biomesoplenty/common/biomes/overworld/sub/BiomeGenCanyonRavine.java @@ -56,27 +56,25 @@ public class BiomeGenCanyonRavine extends BOPSubBiome } @Override - public void decorate(World world, Random random, int chunkX, int chunkZ) - { - super.decorate(world, random, chunkX, chunkZ); - int var5 = 12 + random.nextInt(6); + public void decorate(World world, Random random, int chunkX, int chunkZ) + { + super.decorate(world, random, chunkX, chunkZ); + int var5 = 12 + random.nextInt(6); - for (int var6 = 0; var6 < var5; ++var6) - { - int x = chunkX + random.nextInt(16); - int y = random.nextInt(28) + 4; - int z = chunkZ + random.nextInt(16); - - //TODO: getBlock() - Block block = world.getBlock(x, y, z); + for (int var6 = 0; var6 < var5; ++var6) + { + int x = chunkX + random.nextInt(16); + int y = random.nextInt(28) + 4; + int z = chunkZ + random.nextInt(16); - if (block != null && block.isReplaceableOreGen(world, x, y, z, Blocks.stone)) - { - //TODO: setBlock() - world.setBlock(x, y, z, Blocks.emerald_ore, 0, 2); - } - } - } + Block block = world.getBlock(x, y, z); + + if (block != null && block.isReplaceableOreGen(world, x, y, z, Blocks.stone)) + { + world.setBlock(x, y, z, BOPBlockHelper.get("gemOre"), 2, 2); + } + } + } @Override //TODO: getBiomeFoliageColor()