Re-added Redwood Forest (Trees don't generate properly yet)
This commit is contained in:
parent
3b415460e0
commit
0253add36a
7 changed files with 94 additions and 2 deletions
|
@ -62,6 +62,7 @@ public class BOPBiomes
|
||||||
public static Optional<BiomeGenBase> prairie = Optional.absent();
|
public static Optional<BiomeGenBase> prairie = Optional.absent();
|
||||||
public static Optional<BiomeGenBase> quagmire = Optional.absent();
|
public static Optional<BiomeGenBase> quagmire = Optional.absent();
|
||||||
public static Optional<BiomeGenBase> rainforest = Optional.absent();
|
public static Optional<BiomeGenBase> rainforest = Optional.absent();
|
||||||
|
public static Optional<BiomeGenBase> redwood_forest = Optional.absent();
|
||||||
public static Optional<BiomeGenBase> sacred_springs = Optional.absent();
|
public static Optional<BiomeGenBase> sacred_springs = Optional.absent();
|
||||||
public static Optional<BiomeGenBase> seasonal_forest = Optional.absent();
|
public static Optional<BiomeGenBase> seasonal_forest = Optional.absent();
|
||||||
public static Optional<BiomeGenBase> shield = Optional.absent();
|
public static Optional<BiomeGenBase> shield = Optional.absent();
|
||||||
|
|
|
@ -53,6 +53,7 @@ public class BiomeGenMysticGrove extends BOPBiome
|
||||||
|
|
||||||
this.canGenerateRivers = false;
|
this.canGenerateRivers = false;
|
||||||
this.canGenerateVillages = false;
|
this.canGenerateVillages = false;
|
||||||
|
this.canSpawnInBiome = false;
|
||||||
|
|
||||||
this.addWeight(BOPClimates.WET_TEMPERATE, 1);
|
this.addWeight(BOPClimates.WET_TEMPERATE, 1);
|
||||||
|
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class BiomeGenOminousWoods extends BOPBiome
|
||||||
|
|
||||||
this.canGenerateRivers = false;
|
this.canGenerateRivers = false;
|
||||||
this.canGenerateVillages = false;
|
this.canGenerateVillages = false;
|
||||||
|
this.canSpawnInBiome = false;
|
||||||
|
|
||||||
this.addWeight(BOPClimates.COLD_SWAMP, 1);
|
this.addWeight(BOPClimates.COLD_SWAMP, 1);
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,83 @@
|
||||||
|
package biomesoplenty.common.biome.overworld;
|
||||||
|
|
||||||
|
import net.minecraft.block.BlockDoublePlant;
|
||||||
|
import net.minecraft.block.BlockPlanks;
|
||||||
|
import net.minecraft.block.BlockTallGrass;
|
||||||
|
import net.minecraft.init.Blocks;
|
||||||
|
import net.minecraft.util.BlockPos;
|
||||||
|
import biomesoplenty.api.biome.BOPBiome;
|
||||||
|
import biomesoplenty.api.biome.generation.GeneratorStage;
|
||||||
|
import biomesoplenty.api.biome.generation.GeneratorWeighted;
|
||||||
|
import biomesoplenty.api.block.BOPBlocks;
|
||||||
|
import biomesoplenty.common.block.BlockBOPCoral;
|
||||||
|
import biomesoplenty.common.block.BlockBOPDoublePlant;
|
||||||
|
import biomesoplenty.common.block.BlockBOPLilypad;
|
||||||
|
import biomesoplenty.common.block.BlockBOPMushroom;
|
||||||
|
import biomesoplenty.common.enums.BOPClimates;
|
||||||
|
import biomesoplenty.common.enums.BOPGems;
|
||||||
|
import biomesoplenty.common.enums.BOPPlants;
|
||||||
|
import biomesoplenty.common.enums.BOPTrees;
|
||||||
|
import biomesoplenty.common.enums.BOPWoods;
|
||||||
|
import biomesoplenty.common.util.biome.GeneratorUtils.ScatterYMethod;
|
||||||
|
import biomesoplenty.common.world.BOPWorldSettings;
|
||||||
|
import biomesoplenty.common.world.feature.GeneratorDoubleFlora;
|
||||||
|
import biomesoplenty.common.world.feature.GeneratorFlora;
|
||||||
|
import biomesoplenty.common.world.feature.GeneratorGrass;
|
||||||
|
import biomesoplenty.common.world.feature.GeneratorOreSingle;
|
||||||
|
import biomesoplenty.common.world.feature.tree.GeneratorBush;
|
||||||
|
import biomesoplenty.common.world.feature.tree.GeneratorRedwoodTree;
|
||||||
|
|
||||||
|
public class BiomeGenRedwoodForest extends BOPBiome
|
||||||
|
{
|
||||||
|
|
||||||
|
public BiomeGenRedwoodForest()
|
||||||
|
{
|
||||||
|
|
||||||
|
// terrain
|
||||||
|
this.terrainSettings.avgHeight(63).heightVariation(5, 5).octaves(0, 1, 2, 2, 1, 0);
|
||||||
|
|
||||||
|
this.setColor(0x6DAA3C);
|
||||||
|
this.setTemperatureRainfall(0.7F, 0.7F);
|
||||||
|
|
||||||
|
this.canGenerateVillages = false;
|
||||||
|
|
||||||
|
this.addWeight(BOPClimates.WARM_TEMPERATE, 7);
|
||||||
|
|
||||||
|
// trees
|
||||||
|
//
|
||||||
|
GeneratorWeighted treeGenerator = new GeneratorWeighted(20.0F);
|
||||||
|
this.addGenerator("trees", GeneratorStage.TREE, treeGenerator);
|
||||||
|
treeGenerator.add("redwood", 5, (new GeneratorRedwoodTree.Builder()).log(BOPWoods.REDWOOD).leaves(BOPTrees.REDWOOD).create());
|
||||||
|
treeGenerator.add("oak_bush", 1, (new GeneratorBush.Builder()).maxHeight(2).create());
|
||||||
|
|
||||||
|
// other plants
|
||||||
|
this.addGenerator("bushes", GeneratorStage.FLOWERS,(new GeneratorFlora.Builder()).amountPerChunk(0.7F).with(BOPPlants.BUSH).create());
|
||||||
|
this.addGenerator("shrubs", GeneratorStage.FLOWERS,(new GeneratorFlora.Builder()).amountPerChunk(0.5F).with(BOPPlants.SHRUB).create());
|
||||||
|
this.addGenerator("dead_leaf_piles", GeneratorStage.FLOWERS,(new GeneratorFlora.Builder()).amountPerChunk(0.1F).with(BOPPlants.DEADLEAFPILE).create());
|
||||||
|
this.addGenerator("leaf_piles", GeneratorStage.FLOWERS,(new GeneratorFlora.Builder()).amountPerChunk(0.8F).with(BOPPlants.LEAFPILE).generationAttempts(64).create());
|
||||||
|
|
||||||
|
// shrooms
|
||||||
|
this.addGenerator("brown_mushrooms", GeneratorStage.SHROOM,(new GeneratorFlora.Builder()).amountPerChunk(0.2F).with(Blocks.brown_mushroom.getDefaultState()).create());
|
||||||
|
this.addGenerator("red_mushrooms", GeneratorStage.SHROOM,(new GeneratorFlora.Builder()).amountPerChunk(0.1F).with(Blocks.red_mushroom.getDefaultState()).create());
|
||||||
|
|
||||||
|
// grasses
|
||||||
|
GeneratorWeighted grassGenerator = new GeneratorWeighted(10.0F);
|
||||||
|
this.addGenerator("grass", GeneratorStage.GRASS, grassGenerator);
|
||||||
|
grassGenerator.add("tallgrass", 2, (new GeneratorGrass.Builder()).with(BlockTallGrass.EnumType.GRASS).generationAttempts(128).create());
|
||||||
|
grassGenerator.add("mediumgrass", 2, (new GeneratorGrass.Builder()).with(BOPPlants.MEDIUMGRASS).generationAttempts(128).create());
|
||||||
|
grassGenerator.add("wheatgrass", 2, (new GeneratorGrass.Builder()).with(BOPPlants.WHEATGRASS).generationAttempts(128).create());
|
||||||
|
grassGenerator.add("dampgrass", 2, (new GeneratorGrass.Builder()).with(BOPPlants.DAMPGRASS).generationAttempts(128).create());
|
||||||
|
grassGenerator.add("fern", 1, (new GeneratorGrass.Builder()).with(BlockTallGrass.EnumType.FERN).create());
|
||||||
|
|
||||||
|
// gem
|
||||||
|
this.addGenerator("amber", GeneratorStage.SAND, (new GeneratorOreSingle.Builder()).amountPerChunk(12).with(BOPGems.AMBER).create());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void applySettings(BOPWorldSettings settings)
|
||||||
|
{
|
||||||
|
if (!settings.generateBopGems) {this.removeGenerator("amber");}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -60,6 +60,7 @@ public class BiomeGenWasteland extends BOPBiome
|
||||||
|
|
||||||
this.canGenerateRivers = false;
|
this.canGenerateRivers = false;
|
||||||
this.canGenerateVillages = false;
|
this.canGenerateVillages = false;
|
||||||
|
this.canSpawnInBiome = false;
|
||||||
|
|
||||||
this.addWeight(BOPClimates.HOT_DESERT, 2);
|
this.addWeight(BOPClimates.HOT_DESERT, 2);
|
||||||
|
|
||||||
|
|
|
@ -64,6 +64,7 @@ import static biomesoplenty.api.biome.BOPBiomes.plains_extension;
|
||||||
import static biomesoplenty.api.biome.BOPBiomes.prairie;
|
import static biomesoplenty.api.biome.BOPBiomes.prairie;
|
||||||
import static biomesoplenty.api.biome.BOPBiomes.quagmire;
|
import static biomesoplenty.api.biome.BOPBiomes.quagmire;
|
||||||
import static biomesoplenty.api.biome.BOPBiomes.rainforest;
|
import static biomesoplenty.api.biome.BOPBiomes.rainforest;
|
||||||
|
import static biomesoplenty.api.biome.BOPBiomes.redwood_forest;
|
||||||
import static biomesoplenty.api.biome.BOPBiomes.roofed_forest_extension;
|
import static biomesoplenty.api.biome.BOPBiomes.roofed_forest_extension;
|
||||||
import static biomesoplenty.api.biome.BOPBiomes.sacred_springs;
|
import static biomesoplenty.api.biome.BOPBiomes.sacred_springs;
|
||||||
import static biomesoplenty.api.biome.BOPBiomes.savanna_extension;
|
import static biomesoplenty.api.biome.BOPBiomes.savanna_extension;
|
||||||
|
@ -143,6 +144,7 @@ import biomesoplenty.common.biome.overworld.BiomeGenOutback;
|
||||||
import biomesoplenty.common.biome.overworld.BiomeGenPrairie;
|
import biomesoplenty.common.biome.overworld.BiomeGenPrairie;
|
||||||
import biomesoplenty.common.biome.overworld.BiomeGenQuagmire;
|
import biomesoplenty.common.biome.overworld.BiomeGenQuagmire;
|
||||||
import biomesoplenty.common.biome.overworld.BiomeGenRainforest;
|
import biomesoplenty.common.biome.overworld.BiomeGenRainforest;
|
||||||
|
import biomesoplenty.common.biome.overworld.BiomeGenRedwoodForest;
|
||||||
import biomesoplenty.common.biome.overworld.BiomeGenSacredSprings;
|
import biomesoplenty.common.biome.overworld.BiomeGenSacredSprings;
|
||||||
import biomesoplenty.common.biome.overworld.BiomeGenSeasonalForest;
|
import biomesoplenty.common.biome.overworld.BiomeGenSeasonalForest;
|
||||||
import biomesoplenty.common.biome.overworld.BiomeGenShield;
|
import biomesoplenty.common.biome.overworld.BiomeGenShield;
|
||||||
|
@ -371,6 +373,7 @@ public class ModBiomes implements BOPBiomes.IBiomeRegistry
|
||||||
prairie = registerBOPBiome(new BiomeGenPrairie(), "Prairie");
|
prairie = registerBOPBiome(new BiomeGenPrairie(), "Prairie");
|
||||||
quagmire = registerBOPBiome(new BiomeGenQuagmire(), "Quagmire");
|
quagmire = registerBOPBiome(new BiomeGenQuagmire(), "Quagmire");
|
||||||
rainforest = registerBOPBiome(new BiomeGenRainforest(), "Rainforest");
|
rainforest = registerBOPBiome(new BiomeGenRainforest(), "Rainforest");
|
||||||
|
redwood_forest = registerBOPBiome(new BiomeGenRedwoodForest(), "Redwood Forest");
|
||||||
sacred_springs = registerBOPBiome(new BiomeGenSacredSprings(), "Sacred Springs");
|
sacred_springs = registerBOPBiome(new BiomeGenSacredSprings(), "Sacred Springs");
|
||||||
seasonal_forest = registerBOPBiome(new BiomeGenSeasonalForest(), "Seasonal Forest");
|
seasonal_forest = registerBOPBiome(new BiomeGenSeasonalForest(), "Seasonal Forest");
|
||||||
shield = registerBOPBiome(new BiomeGenShield(), "Shield");
|
shield = registerBOPBiome(new BiomeGenShield(), "Shield");
|
||||||
|
@ -445,7 +448,9 @@ public class ModBiomes implements BOPBiomes.IBiomeRegistry
|
||||||
registerBiomeToDictionary(BOPBiomes.prairie, Type.PLAINS, Type.DRY, Type.SPARSE);
|
registerBiomeToDictionary(BOPBiomes.prairie, Type.PLAINS, Type.DRY, Type.SPARSE);
|
||||||
registerBiomeToDictionary(BOPBiomes.quagmire, Type.SWAMP, Type.WATER, Type.DEAD, Type.WET, Type.WASTELAND);
|
registerBiomeToDictionary(BOPBiomes.quagmire, Type.SWAMP, Type.WATER, Type.DEAD, Type.WET, Type.WASTELAND);
|
||||||
registerBiomeToDictionary(BOPBiomes.rainforest, Type.JUNGLE, Type.FOREST, Type.DENSE, Type.LUSH, Type.HILLS, Type.WET);
|
registerBiomeToDictionary(BOPBiomes.rainforest, Type.JUNGLE, Type.FOREST, Type.DENSE, Type.LUSH, Type.HILLS, Type.WET);
|
||||||
|
registerBiomeToDictionary(BOPBiomes.redwood_forest, Type.FOREST, Type.DENSE, Type.LUSH);
|
||||||
registerBiomeToDictionary(BOPBiomes.seasonal_forest, Type.FOREST, Type.DENSE, Type.LUSH);
|
registerBiomeToDictionary(BOPBiomes.seasonal_forest, Type.FOREST, Type.DENSE, Type.LUSH);
|
||||||
|
registerBiomeToDictionary(BOPBiomes.sacred_springs, Type.MAGICAL, Type.LUSH, Type.WATER, Type.WET, Type.DENSE);
|
||||||
registerBiomeToDictionary(BOPBiomes.shield, Type.FOREST, Type.WATER, Type.HILLS);
|
registerBiomeToDictionary(BOPBiomes.shield, Type.FOREST, Type.WATER, Type.HILLS);
|
||||||
registerBiomeToDictionary(BOPBiomes.shrubland, Type.PLAINS, Type.SPARSE, Type.DRY);
|
registerBiomeToDictionary(BOPBiomes.shrubland, Type.PLAINS, Type.SPARSE, Type.DRY);
|
||||||
registerBiomeToDictionary(BOPBiomes.snowy_coniferous_forest, Type.FOREST, Type.HILLS, Type.CONIFEROUS, Type.DENSE, Type.COLD, Type.SNOWY);
|
registerBiomeToDictionary(BOPBiomes.snowy_coniferous_forest, Type.FOREST, Type.HILLS, Type.CONIFEROUS, Type.DENSE, Type.COLD, Type.SNOWY);
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
"description": "Adds over 75 new biomes, blocks, and more!",
|
"description": "Adds over 75 new biomes, blocks, and more!",
|
||||||
"version": "${mod_version}",
|
"version": "${mod_version}",
|
||||||
"mcversion": "${minecraft_version}",
|
"mcversion": "${minecraft_version}",
|
||||||
"url": "www.minecraftforum.net/topic/1495041-",
|
"url": "http://files.minecraftforge.net/maven/com/github/glitchfiend/biomesoplenty/BiomesOPlenty/",
|
||||||
"authorList": ["Adubbz", "Amnet", "Cheeserolls", "Forstride", "ted80"],
|
"authorList": ["Adubbz", "Amnet", "Cheeserolls", "Forstride", "ted80"],
|
||||||
"credits": "enchilado, gamax92, Soaryn, Tim Rurkowski",
|
"credits": "Tim Rurkowski, gamax92, and many more",
|
||||||
"logoFile": "assets/biomesoplenty/textures/gui/logo.png"
|
"logoFile": "assets/biomesoplenty/textures/gui/logo.png"
|
||||||
}]
|
}]
|
||||||
|
|
Loading…
Reference in a new issue