Removed emerald ore from the Canyon and Moor to balance the amount of biomes with emerald with vanilla
This commit is contained in:
parent
cede836d59
commit
574bfc3e9b
3 changed files with 40 additions and 46 deletions
|
@ -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);
|
|
||||||
|
|
||||||
if (block != null && block.isReplaceableOreGen(world, x, y, z, Blocks.stone))
|
Block block = world.getBlock(x, y, z);
|
||||||
{
|
|
||||||
//TODO: setBlock()
|
if (block != null && block.isReplaceableOreGen(world, x, y, z, Blocks.stone))
|
||||||
world.setBlock(x, y, z, Blocks.emerald_ore, 0, 2);
|
{
|
||||||
}
|
world.setBlock(x, y, z, BOPBlockHelper.get("gemOre"), 2, 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
//TODO: getBiomeFoliageColor()
|
//TODO: getBiomeFoliageColor()
|
||||||
|
|
|
@ -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)
|
||||||
|
@ -66,17 +66,15 @@ public class BiomeGenMoor extends BOPBiome
|
||||||
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"), 10, 2);
|
||||||
world.setBlock(x, y, z, Blocks.emerald_ore, 0, 2);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
//TODO: getBiomeGrassColor()
|
//TODO: getBiomeGrassColor()
|
||||||
|
|
|
@ -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);
|
|
||||||
|
|
||||||
if (block != null && block.isReplaceableOreGen(world, x, y, z, Blocks.stone))
|
Block block = world.getBlock(x, y, z);
|
||||||
{
|
|
||||||
//TODO: setBlock()
|
if (block != null && block.isReplaceableOreGen(world, x, y, z, Blocks.stone))
|
||||||
world.setBlock(x, y, z, Blocks.emerald_ore, 0, 2);
|
{
|
||||||
}
|
world.setBlock(x, y, z, BOPBlockHelper.get("gemOre"), 2, 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
//TODO: getBiomeFoliageColor()
|
//TODO: getBiomeFoliageColor()
|
||||||
|
|
Loading…
Reference in a new issue