Added Mangrove biome base
This commit is contained in:
parent
bfcd3056f5
commit
25b423cd1d
4 changed files with 68 additions and 1 deletions
|
@ -84,6 +84,7 @@ public class BOPBiomes
|
|||
public static Optional<BiomeGenBase> oasis = Optional.absent();
|
||||
public static Optional<BiomeGenBase> coral_reef = Optional.absent();
|
||||
public static Optional<BiomeGenBase> kelp_forest = Optional.absent();
|
||||
public static Optional<BiomeGenBase> mangrove = Optional.absent();
|
||||
public static Optional<BiomeGenBase> origin_island = Optional.absent();
|
||||
public static Optional<BiomeGenBase> tropical_island = Optional.absent();
|
||||
public static Optional<BiomeGenBase> volcanic_island = Optional.absent();
|
||||
|
|
|
@ -41,7 +41,7 @@ public class BiomeGenFlowerIsland extends BOPBiome
|
|||
|
||||
public BiomeGenFlowerIsland()
|
||||
{
|
||||
super("Flower Island", new PropsBuilder("flower_island").withGuiColour(0x74D374).withTemperature(0.6F).withRainfall(0.8F));
|
||||
super("flower_island", new PropsBuilder("Flower Island").withGuiColour(0x74D374).withTemperature(0.6F).withRainfall(0.8F));
|
||||
|
||||
// terrain
|
||||
this.terrainSettings.avgHeight(70).heightVariation(10, 15).octaves(0, 0, 1, 1, 2, 2);
|
||||
|
|
|
@ -0,0 +1,61 @@
|
|||
/*******************************************************************************
|
||||
* Copyright 2015-2016, the Biomes O' Plenty Team
|
||||
*
|
||||
* This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License.
|
||||
*
|
||||
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
|
||||
******************************************************************************/
|
||||
|
||||
package biomesoplenty.common.biome.overworld;
|
||||
|
||||
import biomesoplenty.api.biome.BOPBiome;
|
||||
import biomesoplenty.api.biome.generation.GeneratorStage;
|
||||
import biomesoplenty.api.biome.generation.GeneratorWeighted;
|
||||
import biomesoplenty.common.entities.EntityButterfly;
|
||||
import biomesoplenty.common.enums.BOPFlowers;
|
||||
import biomesoplenty.common.enums.BOPGems;
|
||||
import biomesoplenty.common.enums.BOPPlants;
|
||||
import biomesoplenty.common.world.BOPWorldSettings;
|
||||
import biomesoplenty.common.world.feature.GeneratorFlora;
|
||||
import biomesoplenty.common.world.feature.GeneratorGrass;
|
||||
import biomesoplenty.common.world.feature.GeneratorOreSingle;
|
||||
import net.minecraft.block.BlockFlower;
|
||||
import net.minecraft.block.BlockTallGrass;
|
||||
import net.minecraft.init.Blocks;
|
||||
|
||||
public class BiomeGenMangrove extends BOPBiome
|
||||
{
|
||||
public BiomeGenMangrove()
|
||||
{
|
||||
super("mangrove", new PropsBuilder("Mangrove").withTemperature(0.8F).withRainfall(0.8F).withGuiColour(7251289));
|
||||
|
||||
// terrain
|
||||
this.terrainSettings.avgHeight(62).heightVariation(2, 2).octaves(0, 1, 2, 2, 1, 0);
|
||||
|
||||
this.topBlock = Blocks.sand.getDefaultState();
|
||||
this.fillerBlock = Blocks.sand.getDefaultState();
|
||||
|
||||
this.canSpawnInBiome = false;
|
||||
this.canGenerateVillages = false;
|
||||
this.canGenerateRivers = false;
|
||||
|
||||
this.spawnableCreatureList.clear();
|
||||
|
||||
this.beachBiomeLocation = null;
|
||||
|
||||
clearWeights();
|
||||
|
||||
// gem
|
||||
this.addGenerator("sapphire", GeneratorStage.SAND, (new GeneratorOreSingle.Builder()).amountPerChunk(12).with(BOPGems.SAPPHIRE).create());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void applySettings(BOPWorldSettings settings)
|
||||
{
|
||||
if (!settings.generateBopGems) {this.removeGenerator("sapphire");}
|
||||
|
||||
if (!settings.generateBopFoliage) {this.removeGenerator("bushes"); this.removeGenerator("koru"); this.removeGenerator("shrubs"); this.removeGenerator("leaf_piles"); this.removeGenerator("dead_leaf_piles"); this.removeGenerator("clover_patches"); this.removeGenerator("sprouts");}
|
||||
|
||||
if (!settings.generateBopPlants) {this.removeGenerator("cattail"); this.removeGenerator("double_cattail"); this.removeGenerator("river_cane"); this.removeGenerator("tiny_cacti"); this.removeGenerator("roots"); this.removeGenerator("rafflesia"); this.removeGenerator("desert_sprouts");}
|
||||
}
|
||||
}
|
|
@ -53,6 +53,7 @@ import static biomesoplenty.api.biome.BOPBiomes.land_of_lakes;
|
|||
import static biomesoplenty.api.biome.BOPBiomes.lavender_fields;
|
||||
import static biomesoplenty.api.biome.BOPBiomes.lush_desert;
|
||||
import static biomesoplenty.api.biome.BOPBiomes.lush_swamp;
|
||||
import static biomesoplenty.api.biome.BOPBiomes.mangrove;
|
||||
import static biomesoplenty.api.biome.BOPBiomes.maple_woods;
|
||||
import static biomesoplenty.api.biome.BOPBiomes.marsh;
|
||||
import static biomesoplenty.api.biome.BOPBiomes.meadow;
|
||||
|
@ -146,6 +147,7 @@ import biomesoplenty.common.biome.overworld.BiomeGenLandOfLakes;
|
|||
import biomesoplenty.common.biome.overworld.BiomeGenLavenderFields;
|
||||
import biomesoplenty.common.biome.overworld.BiomeGenLushDesert;
|
||||
import biomesoplenty.common.biome.overworld.BiomeGenLushSwamp;
|
||||
import biomesoplenty.common.biome.overworld.BiomeGenMangrove;
|
||||
import biomesoplenty.common.biome.overworld.BiomeGenMapleWoods;
|
||||
import biomesoplenty.common.biome.overworld.BiomeGenMarsh;
|
||||
import biomesoplenty.common.biome.overworld.BiomeGenMeadow;
|
||||
|
@ -392,6 +394,7 @@ public class ModBiomes implements BOPBiomes.IBiomeRegistry
|
|||
|
||||
// island biomes
|
||||
|
||||
mangrove = registerBOPBiome(new BiomeGenMangrove());
|
||||
origin_island = registerBOPBiome(new BiomeGenOriginIsland());
|
||||
tropical_island = registerBOPBiome(new BiomeGenTropicalIsland());
|
||||
volcanic_island = registerBOPBiome(new BiomeGenVolcanicIsland());
|
||||
|
@ -401,6 +404,7 @@ public class ModBiomes implements BOPBiomes.IBiomeRegistry
|
|||
addIslandBiome(tropical_island, 3);
|
||||
addIslandBiome(volcanic_island, 5);
|
||||
addIslandBiome(flower_island, 7);
|
||||
addIslandBiome(mangrove, 10);
|
||||
}
|
||||
|
||||
public static void initExtendedBiomes()
|
||||
|
@ -500,6 +504,7 @@ public class ModBiomes implements BOPBiomes.IBiomeRegistry
|
|||
registerBiomeToDictionary(BOPBiomes.oasis, Type.SANDY, Type.LUSH, Type.JUNGLE, Type.HOT, Type.WET, Type.SPARSE);
|
||||
registerBiomeToDictionary(BOPBiomes.coral_reef, Type.WATER, Type.OCEAN);
|
||||
registerBiomeToDictionary(BOPBiomes.kelp_forest, Type.WATER, Type.OCEAN);
|
||||
registerBiomeToDictionary(BOPBiomes.mangrove, Type.WATER, Type.OCEAN, Type.FOREST, Type.LUSH, Type.WET, Type.DENSE);
|
||||
registerBiomeToDictionary(BOPBiomes.tropical_island, Type.WATER, Type.OCEAN, Type.JUNGLE, Type.LUSH, Type.WET, Type.DENSE);
|
||||
registerBiomeToDictionary(BOPBiomes.volcanic_island, Type.WATER, Type.OCEAN, Type.DEAD, Type.WASTELAND, Type.MOUNTAIN, Type.HOT, Type.DRY);
|
||||
registerBiomeToDictionary(BOPBiomes.flower_island, Type.WATER, Type.OCEAN, Type.PLAINS, Type.LUSH, Type.DENSE, Type.MAGICAL);
|
||||
|
|
Loading…
Reference in a new issue