Fixed underground decoration placement
This commit is contained in:
parent
cf01d10c27
commit
2266314959
1 changed files with 7 additions and 3 deletions
|
@ -28,6 +28,8 @@ import biomesoplenty.common.enums.BOPPlants;
|
||||||
import biomesoplenty.common.init.ModBiomes;
|
import biomesoplenty.common.init.ModBiomes;
|
||||||
import biomesoplenty.common.util.biome.BiomeUtils;
|
import biomesoplenty.common.util.biome.BiomeUtils;
|
||||||
import biomesoplenty.common.util.biome.GeneratorUtils.ScatterYMethod;
|
import biomesoplenty.common.util.biome.GeneratorUtils.ScatterYMethod;
|
||||||
|
import biomesoplenty.common.util.block.BlockQuery;
|
||||||
|
import biomesoplenty.common.util.block.BlockQuery.IBlockPosQuery;
|
||||||
import biomesoplenty.common.util.config.BOPConfig;
|
import biomesoplenty.common.util.config.BOPConfig;
|
||||||
import biomesoplenty.common.util.config.BOPConfig.IConfigObj;
|
import biomesoplenty.common.util.config.BOPConfig.IConfigObj;
|
||||||
import biomesoplenty.common.world.BOPWorldSettings;
|
import biomesoplenty.common.world.BOPWorldSettings;
|
||||||
|
@ -88,9 +90,11 @@ public class BOPBiome extends BiomeGenBase implements IExtendedBiome
|
||||||
|
|
||||||
// roots
|
// roots
|
||||||
this.addGenerator("roots", GeneratorStage.FLOWERS,(new GeneratorFlora.Builder()).amountPerChunk(4.0F).with(BOPPlants.ROOT).create());
|
this.addGenerator("roots", GeneratorStage.FLOWERS,(new GeneratorFlora.Builder()).amountPerChunk(4.0F).with(BOPPlants.ROOT).create());
|
||||||
this.addGenerator("miners_delight", GeneratorStage.FLOWERS,(new GeneratorFlora.Builder()).amountPerChunk(0.2F).with(BOPFlowers.MINERS_DELIGHT).scatterYMethod(ScatterYMethod.BELOW_GROUND).create());
|
|
||||||
this.addGenerator("glowshrooms", GeneratorStage.FLOWERS,(new GeneratorFlora.Builder()).amountPerChunk(1.5F).with(BOPBlocks.mushroom.getDefaultState().withProperty(BlockBOPMushroom.VARIANT, BlockBOPMushroom.MushroomType.GLOWSHROOM)).scatterYMethod(ScatterYMethod.BELOW_GROUND).create());
|
IBlockPosQuery suitableStonePosition = BlockQuery.buildAnd().withAltitudeBetween(0, 55).blocks(Blocks.stone).create();
|
||||||
this.addGenerator("stone_formations", GeneratorStage.FLOWERS,(new GeneratorColumns.Builder()).amountPerChunk(30.0F).generationAttempts(32).placeOn(Blocks.stone).with(BOPBlocks.stone_formations.getDefaultState()).scatterYMethod(ScatterYMethod.BELOW_GROUND).minHeight(1).maxHeight(7).randomDirection(true).create());
|
this.addGenerator("miners_delight", GeneratorStage.FLOWERS,(new GeneratorFlora.Builder()).amountPerChunk(0.25F).generationAttempts(64).with(BOPFlowers.MINERS_DELIGHT).placeOn(suitableStonePosition).scatterYMethod(ScatterYMethod.BELOW_GROUND).create());
|
||||||
|
this.addGenerator("glowshrooms", GeneratorStage.FLOWERS,(new GeneratorFlora.Builder()).amountPerChunk(1.5F).generationAttempts(64).placeOn(suitableStonePosition).with(BOPBlocks.mushroom.getDefaultState().withProperty(BlockBOPMushroom.VARIANT, BlockBOPMushroom.MushroomType.GLOWSHROOM)).scatterYMethod(ScatterYMethod.BELOW_GROUND).create());
|
||||||
|
this.addGenerator("stone_formations", GeneratorStage.FLOWERS,(new GeneratorColumns.Builder()).amountPerChunk(30.0F).generationAttempts(32).placeOn(suitableStonePosition).with(BOPBlocks.stone_formations.getDefaultState()).minHeight(1).maxHeight(7).randomDirection(true).scatterYMethod(ScatterYMethod.BELOW_GROUND).create());
|
||||||
}
|
}
|
||||||
|
|
||||||
public BOPBiome(String idName, PropsBuilder defaultBuilder)
|
public BOPBiome(String idName, PropsBuilder defaultBuilder)
|
||||||
|
|
Loading…
Reference in a new issue