Tweaks to the Coral Reef and Kelp Forest, and coral textures
|
@ -11,22 +11,23 @@ import biomesoplenty.common.biomes.BOPOceanBiome;
|
||||||
|
|
||||||
public class BiomeGenCoralReef extends BOPOceanBiome
|
public class BiomeGenCoralReef extends BOPOceanBiome
|
||||||
{
|
{
|
||||||
private static final Height biomeHeight = new Height(-0.7F, 0.1F);
|
private static final Height biomeHeight = new Height(-0.6F, 0.1F);
|
||||||
|
|
||||||
public BiomeGenCoralReef(int biomeID)
|
public BiomeGenCoralReef(int biomeID)
|
||||||
{
|
{
|
||||||
super(biomeID);
|
super(biomeID);
|
||||||
|
|
||||||
this.zoom = 0.5D;
|
this.zoom = 0.25D;
|
||||||
this.threshold = 0D;
|
this.threshold = 0.25D;
|
||||||
|
|
||||||
this.setHeight(biomeHeight);
|
this.setHeight(biomeHeight);
|
||||||
this.setColor(18285);
|
this.setColor(18285);
|
||||||
this.setTemperatureRainfall(0.5F, 0.9F);
|
this.setTemperatureRainfall(0.5F, 0.9F);
|
||||||
|
|
||||||
this.bopWorldFeatures.setFeature("coralPerChunk", 300);
|
this.bopWorldFeatures.setFeature("coralPerChunk", 300);
|
||||||
this.bopWorldFeatures.setFeature("shortKelpPerChunk", 99);
|
this.bopWorldFeatures.setFeature("shortKelpPerChunk", 100);
|
||||||
this.bopWorldFeatures.setFeature("generateSponge", true);
|
this.bopWorldFeatures.setFeature("generateSponge", true);
|
||||||
|
this.bopWorldFeatures.setFeature("seaweedPerChunk", 20);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -10,14 +10,14 @@ import biomesoplenty.common.biomes.BOPOceanBiome;
|
||||||
|
|
||||||
public class BiomeGenKelpForest extends BOPOceanBiome
|
public class BiomeGenKelpForest extends BOPOceanBiome
|
||||||
{
|
{
|
||||||
private static final Height biomeHeight = new Height(-0.9F, 0.1F);
|
private static final Height biomeHeight = new Height(-1.2F, 0.1F);
|
||||||
|
|
||||||
public BiomeGenKelpForest(int biomeID)
|
public BiomeGenKelpForest(int biomeID)
|
||||||
{
|
{
|
||||||
super(biomeID);
|
super(biomeID);
|
||||||
|
|
||||||
this.zoom = 0.5D;
|
this.zoom = 0.25D;
|
||||||
this.threshold = 0D;
|
this.threshold = 0.25D;
|
||||||
|
|
||||||
this.setHeight(biomeHeight);
|
this.setHeight(biomeHeight);
|
||||||
this.setColor(27468);
|
this.setColor(27468);
|
||||||
|
@ -26,6 +26,7 @@ public class BiomeGenKelpForest extends BOPOceanBiome
|
||||||
this.bopWorldFeatures.setFeature("kelpPerChunk", 999);
|
this.bopWorldFeatures.setFeature("kelpPerChunk", 999);
|
||||||
this.bopWorldFeatures.setFeature("kelpThickPerChunk", 999);
|
this.bopWorldFeatures.setFeature("kelpThickPerChunk", 999);
|
||||||
this.bopWorldFeatures.setFeature("shortKelpPerChunk", 200);
|
this.bopWorldFeatures.setFeature("shortKelpPerChunk", 200);
|
||||||
|
this.bopWorldFeatures.setFeature("seaweedPerChunk", 20);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -85,6 +85,17 @@ public class WorldGenKelp extends WorldGeneratorBOP
|
||||||
int randZ = z + random.nextInt(8);
|
int randZ = z + random.nextInt(8);
|
||||||
int randY = random.nextInt(64);
|
int randY = random.nextInt(64);
|
||||||
|
|
||||||
|
this.generate(world, random, randX, randY, randZ);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (featureName == "shortKelpPerChunk")
|
||||||
|
{
|
||||||
|
for (int i = 0; i < (Integer)BOPDecorationManager.getBiomeFeatures(biome.biomeID).getFeature(featureName); i++)
|
||||||
|
{
|
||||||
|
int randX = x + random.nextInt(16);
|
||||||
|
int randZ = z + random.nextInt(16);
|
||||||
|
int randY = random.nextInt(64);
|
||||||
|
|
||||||
this.generate(world, random, randX, randY, randZ);
|
this.generate(world, random, randX, randY, randZ);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -117,7 +117,7 @@ public class WorldGenFieldAssociation
|
||||||
associateFeature("coralPerChunk", new WorldGenBOPCoral(BOPBlockHelper.get("coral1"), -1));
|
associateFeature("coralPerChunk", new WorldGenBOPCoral(BOPBlockHelper.get("coral1"), -1));
|
||||||
associateFeature("kelpPerChunk", new WorldGenKelp(4, 8));
|
associateFeature("kelpPerChunk", new WorldGenKelp(4, 8));
|
||||||
associateFeature("kelpThickPerChunk", new WorldGenKelp(4, 8));
|
associateFeature("kelpThickPerChunk", new WorldGenKelp(4, 8));
|
||||||
associateFeature("shortKelpPerChunk", new WorldGenKelp(2, 3));
|
associateFeature("shortKelpPerChunk", new WorldGenKelp(2, 4));
|
||||||
|
|
||||||
//Nether Features
|
//Nether Features
|
||||||
associateFeature("waspHivesPerChunk", new WorldGenWaspHive());
|
associateFeature("waspHivesPerChunk", new WorldGenWaspHive());
|
||||||
|
|
Before Width: | Height: | Size: 643 B After Width: | Height: | Size: 690 B |
Before Width: | Height: | Size: 663 B After Width: | Height: | Size: 657 B |
Before Width: | Height: | Size: 620 B After Width: | Height: | Size: 717 B |
Before Width: | Height: | Size: 628 B After Width: | Height: | Size: 500 B |