use of rtg.api.world.gen.feature.tree.rtg.TreeRTGPinusPonderosa in project Realistic-Terrain-Generation by Team-RTG.
the class RealisticBiomeVanillaSwamplandM method initDecos.
@Override
public void initDecos() {
TreeRTG myrtilloidesTree = new TreeRTGSalixMyrtilloides();
myrtilloidesTree.setLogBlock(Blocks.LOG.getDefaultState());
myrtilloidesTree.setLeavesBlock(Blocks.LEAVES.getDefaultState());
this.addTree(myrtilloidesTree);
DecoTree decoTrees = new DecoTree(myrtilloidesTree);
decoTrees.setStrengthNoiseFactorXForLoops(true);
decoTrees.setStrengthFactorForLoops(1f);
decoTrees.getDistribution().setNoiseDivisor(80f);
decoTrees.getDistribution().setNoiseFactor(60f);
decoTrees.getDistribution().setNoiseAddend(-15f);
decoTrees.setTreeType(DecoTree.TreeType.RTG_TREE);
decoTrees.setTreeCondition(DecoTree.TreeCondition.RANDOM_CHANCE);
decoTrees.setTreeConditionChance(12);
decoTrees.setMaxY(100);
this.addDeco(decoTrees);
TreeRTG ponderosaTree = new TreeRTGPinusPonderosa();
ponderosaTree.setLogBlock(Blocks.LOG.getDefaultState());
ponderosaTree.setLeavesBlock(Blocks.LEAVES.getDefaultState());
ponderosaTree.setMinTrunkSize(3);
ponderosaTree.setMaxTrunkSize(6);
ponderosaTree.setMinCrownSize(6);
ponderosaTree.setMaxCrownSize(14);
ponderosaTree.setNoLeaves(true);
this.addTree(ponderosaTree);
DecoTree deadPineTree = new DecoTree(ponderosaTree);
deadPineTree.setTreeType(DecoTree.TreeType.RTG_TREE);
deadPineTree.setTreeCondition(DecoTree.TreeCondition.RANDOM_CHANCE);
deadPineTree.setTreeConditionChance(18);
deadPineTree.setMaxY(100);
this.addDeco(deadPineTree);
DecoShrub decoShrub = new DecoShrub();
decoShrub.setMaxY(100);
decoShrub.setStrengthFactor(3f);
this.addDeco(decoShrub);
DecoFallenTree decoFallenTree = new DecoFallenTree();
decoFallenTree.getDistribution().setNoiseDivisor(80f);
decoFallenTree.getDistribution().setNoiseFactor(60f);
decoFallenTree.getDistribution().setNoiseAddend(-15f);
decoFallenTree.setLogCondition(DecoFallenTree.LogCondition.NOISE_GREATER_AND_RANDOM_CHANCE);
decoFallenTree.setLogConditionNoise(0f);
decoFallenTree.setLogConditionChance(6);
decoFallenTree.setLogBlock(BlockUtil.getStateLog2(1));
decoFallenTree.setLeavesBlock(BlockUtil.getStateLeaf2(1));
decoFallenTree.setMinSize(3);
decoFallenTree.setMaxSize(6);
this.addDeco(decoFallenTree, this.getConfig().ALLOW_LOGS.get());
DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoBaseBiomeDecorations();
this.addDeco(decoBaseBiomeDecorations);
DecoPumpkin decoPumpkin = new DecoPumpkin();
decoPumpkin.setMaxY(90);
decoPumpkin.setRandomType(DecoPumpkin.RandomType.X_DIVIDED_BY_STRENGTH);
decoPumpkin.setRandomFloat(50f);
this.addDeco(decoPumpkin);
DecoGrass decoGrass = new DecoGrass();
decoGrass.setMaxY(128);
decoGrass.setStrengthFactor(12f);
this.addDeco(decoGrass);
}
use of rtg.api.world.gen.feature.tree.rtg.TreeRTGPinusPonderosa in project Realistic-Terrain-Generation by Team-RTG.
the class DecoCollectionForest method tallPineTrees.
private DecoTree tallPineTrees(IBlockState log, IBlockState leaves, float noiseMin, float noiseMax) {
TreeRTG pinusPonderosa = new TreeRTGPinusPonderosa();
pinusPonderosa.setLogBlock(log);
pinusPonderosa.setLeavesBlock(leaves);
pinusPonderosa.setMinTrunkSize(11);
pinusPonderosa.setMaxTrunkSize(21);
pinusPonderosa.setMinCrownSize(15);
pinusPonderosa.setMaxCrownSize(29);
this.addTree(pinusPonderosa);
return new DecoTree(pinusPonderosa).setStrengthFactorForLoops(8f).setTreeType(TreeType.RTG_TREE).setDistribution(forestDistribution).setTreeCondition(TreeCondition.NOISE_BETWEEN_AND_RANDOM_CHANCE).setTreeConditionNoise(noiseMin).setTreeConditionNoise2(noiseMax).setTreeConditionChance(1).setMaxY(85);
}
use of rtg.api.world.gen.feature.tree.rtg.TreeRTGPinusPonderosa in project Realistic-Terrain-Generation by Team-RTG.
the class DecoCollectionIceTrees method tallPineTrees.
private DecoTree tallPineTrees(IBlockState log, IBlockState leaves, float noiseMin, float noiseMax) {
TreeRTG pinusPonderosa = new TreeRTGPinusPonderosa();
pinusPonderosa.setLogBlock(log);
pinusPonderosa.setLeavesBlock(leaves);
pinusPonderosa.setMinTrunkSize(8);
pinusPonderosa.setMaxTrunkSize(21);
pinusPonderosa.setMinCrownSize(13);
pinusPonderosa.setMaxCrownSize(29);
ArrayList<IBlockState> validBlocks = pinusPonderosa.getValidGroundBlocks();
validBlocks.add(Blocks.SNOW.getDefaultState());
pinusPonderosa.setValidGroundBlocks(validBlocks);
this.addTree(pinusPonderosa);
return new DecoTree(pinusPonderosa).setStrengthFactorForLoops(4f).setTreeType(TreeType.RTG_TREE).setDistribution(forestDistribution).setTreeCondition(TreeCondition.NOISE_BETWEEN_AND_RANDOM_CHANCE).setTreeConditionNoise(noiseMin).setTreeConditionNoise2(noiseMax).setTreeConditionChance(2).setMaxY(85);
}
use of rtg.api.world.gen.feature.tree.rtg.TreeRTGPinusPonderosa in project Realistic-Terrain-Generation by Team-RTG.
the class RealisticBiomeVanillaFlowerForest method initDecos.
@Override
public void initDecos() {
// First, let's get a few shrubs in to break things up a bit.
DecoShrub decoShrub = new DecoShrub();
decoShrub.setMaxY(110);
decoShrub.setStrengthFactor(4f);
decoShrub.setChance(3);
this.addDeco(decoShrub);
// Flowers are the most aesthetically important feature of this biome, so let's add those next.
DecoFlowersRTG decoFlowers1 = new DecoFlowersRTG();
//Only colourful 1-block-tall flowers.
decoFlowers1.setFlowers(new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 });
// Lots and lots of flowers!
decoFlowers1.setStrengthFactor(12f);
// We're only bothered about surface flowers here.
decoFlowers1.setHeightType(DecoFlowersRTG.HeightType.GET_HEIGHT_VALUE);
this.addDeco(decoFlowers1);
DecoFlowersRTG decoFlowers2 = new DecoFlowersRTG();
//Only 2-block-tall flowers.
decoFlowers2.setFlowers(new int[] { 10, 11, 14, 15 });
// Not as many of these.
decoFlowers2.setStrengthFactor(2f);
decoFlowers2.setChance(3);
// We're only bothered about surface flowers here.
decoFlowers2.setHeightType(DecoFlowersRTG.HeightType.GET_HEIGHT_VALUE);
this.addDeco(decoFlowers2);
// Trees first.
TreeRTG ponderosaOakTree = new TreeRTGPinusPonderosa();
ponderosaOakTree.setLogBlock(Blocks.LOG.getDefaultState());
ponderosaOakTree.setLeavesBlock(Blocks.LEAVES.getDefaultState());
ponderosaOakTree.setMinTrunkSize(11);
ponderosaOakTree.setMaxTrunkSize(21);
ponderosaOakTree.setMinCrownSize(15);
ponderosaOakTree.setMaxCrownSize(29);
this.addTree(ponderosaOakTree);
DecoTree oakPines = new DecoTree(ponderosaOakTree);
oakPines.setStrengthNoiseFactorForLoops(true);
oakPines.setTreeType(DecoTree.TreeType.RTG_TREE);
oakPines.getDistribution().setNoiseDivisor(80f);
oakPines.getDistribution().setNoiseFactor(60f);
oakPines.getDistribution().setNoiseAddend(-15f);
oakPines.setTreeCondition(DecoTree.TreeCondition.ALWAYS_GENERATE);
oakPines.setTreeConditionNoise(0f);
oakPines.setTreeConditionChance(1);
oakPines.setMaxY(140);
TreeRTG ponderosaSpruceTree = new TreeRTGPinusPonderosa();
ponderosaSpruceTree.setLogBlock(BlockUtil.getStateLog(1));
ponderosaSpruceTree.setLeavesBlock(BlockUtil.getStateLeaf(1));
ponderosaSpruceTree.setMinTrunkSize(11);
ponderosaSpruceTree.setMaxTrunkSize(21);
ponderosaSpruceTree.setMinCrownSize(15);
ponderosaSpruceTree.setMaxCrownSize(29);
this.addTree(ponderosaSpruceTree);
DecoTree sprucePines = new DecoTree(ponderosaSpruceTree);
sprucePines.setStrengthNoiseFactorForLoops(true);
sprucePines.setTreeType(DecoTree.TreeType.RTG_TREE);
sprucePines.getDistribution().setNoiseDivisor(80f);
sprucePines.getDistribution().setNoiseFactor(60f);
sprucePines.getDistribution().setNoiseAddend(-15f);
sprucePines.setTreeCondition(DecoTree.TreeCondition.ALWAYS_GENERATE);
sprucePines.setTreeConditionNoise(0f);
sprucePines.setTreeConditionChance(1);
sprucePines.setMaxY(140);
DecoHelper5050 decoPines = new DecoHelper5050(oakPines, sprucePines);
this.addDeco(decoPines);
// More trees.
this.addDecoCollection(new DecoCollectionSmallPineTreesForest());
// Not much free space left, so let's give some space to the base biome.
DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoBaseBiomeDecorations();
decoBaseBiomeDecorations.setNotEqualsZeroChance(4);
this.addDeco(decoBaseBiomeDecorations);
// Add some fallen trees of the oak and spruce variety (50/50 distribution).
DecoFallenTree decoFallenOak = new DecoFallenTree();
decoFallenOak.setLogCondition(RANDOM_CHANCE);
decoFallenOak.setLogConditionChance(8);
decoFallenOak.setMaxY(100);
decoFallenOak.setLogBlock(Blocks.LOG.getDefaultState());
decoFallenOak.setLeavesBlock(Blocks.LEAVES.getDefaultState());
decoFallenOak.setMinSize(3);
decoFallenOak.setMaxSize(6);
DecoFallenTree decoFallenSpruce = new DecoFallenTree();
decoFallenSpruce.setLogCondition(RANDOM_CHANCE);
decoFallenSpruce.setLogConditionChance(8);
decoFallenSpruce.setMaxY(100);
decoFallenSpruce.setLogBlock(BlockUtil.getStateLog(1));
decoFallenSpruce.setLeavesBlock(BlockUtil.getStateLeaf(1));
decoFallenSpruce.setMinSize(3);
decoFallenSpruce.setMaxSize(6);
DecoHelper5050 decoFallenTree = new DecoHelper5050(decoFallenOak, decoFallenSpruce);
this.addDeco(decoFallenTree, this.getConfig().ALLOW_LOGS.get());
// Grass filler.
DecoGrass decoGrass = new DecoGrass();
decoGrass.setMaxY(128);
decoGrass.setStrengthFactor(24f);
this.addDeco(decoGrass);
}
use of rtg.api.world.gen.feature.tree.rtg.TreeRTGPinusPonderosa in project Realistic-Terrain-Generation by Team-RTG.
the class RealisticBiomeMFMithwoodForest method initDecos.
@Override
public void initDecos() {
TreeRTG megaMithwood = new TreeRTGPinusNigra();
megaMithwood.setLogBlock(mithwoodLogBlock);
megaMithwood.setLeavesBlock(mithwoodLeavesBlock);
megaMithwood.setMinTrunkSize(18);
megaMithwood.setMaxTrunkSize(27);
megaMithwood.setMinCrownSize(7);
megaMithwood.setMaxCrownSize(10);
this.addTree(megaMithwood);
DecoTree RTGMithwood = new DecoTree(megaMithwood);
RTGMithwood.setStrengthFactorForLoops(1f);
RTGMithwood.setStrengthNoiseFactorXForLoops(true);
RTGMithwood.getDistribution().setNoiseDivisor(100f);
RTGMithwood.getDistribution().setNoiseFactor(6f);
RTGMithwood.getDistribution().setNoiseAddend(0.8f);
RTGMithwood.setTreeType(DecoTree.TreeType.RTG_TREE);
RTGMithwood.setTreeCondition(DecoTree.TreeCondition.RANDOM_CHANCE);
RTGMithwood.setTreeConditionChance(12);
RTGMithwood.setMaxY(100);
this.addDeco(RTGMithwood);
TreeRTG megaOak = new TreeRTGPinusNigra();
megaOak.setLogBlock(Blocks.LOG.getDefaultState());
megaOak.setLeavesBlock(Blocks.LEAVES.getDefaultState());
megaOak.setMinTrunkSize(18);
megaOak.setMaxTrunkSize(27);
megaOak.setMinCrownSize(7);
megaOak.setMaxCrownSize(10);
this.addTree(megaOak);
DecoTree RTGOak = new DecoTree(megaOak);
RTGOak.setStrengthFactorForLoops(4f);
RTGOak.setStrengthNoiseFactorXForLoops(true);
RTGOak.getDistribution().setNoiseDivisor(100f);
RTGOak.getDistribution().setNoiseFactor(6f);
RTGOak.getDistribution().setNoiseAddend(0.8f);
RTGOak.setTreeType(DecoTree.TreeType.RTG_TREE);
RTGOak.setTreeCondition(DecoTree.TreeCondition.RANDOM_CHANCE);
RTGOak.setTreeConditionChance(12);
RTGOak.setMaxY(100);
this.addDeco(RTGOak);
TreeRTG megaBirch = new TreeRTGBetulaPapyrifera();
megaBirch.setLogBlock(BlockUtil.getStateLog(2));
megaBirch.setLeavesBlock(BlockUtil.getStateLeaf(2));
megaBirch.setMinTrunkSize(4);
megaBirch.setMaxTrunkSize(10);
megaBirch.setMinCrownSize(8);
megaBirch.setMaxCrownSize(19);
this.addTree(megaBirch);
DecoTree RTGBirch = new DecoTree(megaBirch);
RTGBirch.setStrengthFactorForLoops(2f);
RTGBirch.setTreeType(DecoTree.TreeType.RTG_TREE);
RTGBirch.setTreeCondition(DecoTree.TreeCondition.RANDOM_CHANCE);
RTGBirch.setTreeConditionChance(24);
RTGBirch.setMaxY(100);
this.addDeco(RTGBirch);
TreeRTG megaSpruce = new TreeRTGPinusPonderosa();
megaSpruce.setLogBlock(BlockUtil.getStateLog(1));
megaSpruce.setLeavesBlock(BlockUtil.getStateLeaf(1));
megaSpruce.setMinTrunkSize(11);
megaSpruce.setMaxTrunkSize(21);
megaSpruce.setMinCrownSize(15);
megaSpruce.setMaxCrownSize(29);
this.addTree(megaSpruce);
DecoTree RTGSpruce = new DecoTree(megaSpruce);
RTGSpruce.setStrengthFactorForLoops(2f);
RTGSpruce.setStrengthNoiseFactorForLoops(true);
RTGSpruce.setTreeType(DecoTree.TreeType.RTG_TREE);
RTGSpruce.getDistribution().setNoiseDivisor(80f);
RTGSpruce.getDistribution().setNoiseFactor(60f);
RTGSpruce.getDistribution().setNoiseAddend(-15f);
RTGSpruce.setTreeCondition(DecoTree.TreeCondition.RANDOM_CHANCE);
RTGSpruce.setTreeConditionNoise(0f);
RTGSpruce.setTreeConditionChance(24);
RTGSpruce.setMaxY(140);
this.addDeco(RTGSpruce);
DecoShrub decoShrubMithwood = new DecoShrub();
decoShrubMithwood.setLogBlock(mithwoodLogBlock);
decoShrubMithwood.setLeavesBlock(mithwoodLeavesBlock);
decoShrubMithwood.setMaxY(100);
decoShrubMithwood.setStrengthFactor(1f);
decoShrubMithwood.setChance(2);
this.addDeco(decoShrubMithwood);
DecoShrub decoShrub = new DecoShrub();
decoShrub.setMaxY(100);
decoShrub.setStrengthFactor(2f);
decoShrub.setChance(4);
this.addDeco(decoShrub);
DecoFlowersRTG decoFlowers1 = new DecoFlowersRTG();
decoFlowers1.setFlowers(new int[] { 1, 2, 3, 6, 7, 8 });
decoFlowers1.setStrengthFactor(2f);
decoFlowers1.setHeightType(DecoFlowersRTG.HeightType.GET_HEIGHT_VALUE);
this.addDeco(decoFlowers1);
DecoFlowersRTG decoFlowers2 = new DecoFlowersRTG();
decoFlowers2.setFlowers(new int[] { 11, 12, 13, 14 });
decoFlowers2.setStrengthFactor(1f);
decoFlowers2.setChance(1);
decoFlowers2.setHeightType(DecoFlowersRTG.HeightType.GET_HEIGHT_VALUE);
this.addDeco(decoFlowers2);
DecoBoulder decoBoulder = new DecoBoulder();
decoBoulder.setBoulderBlock(Blocks.COBBLESTONE.getDefaultState());
decoBoulder.setChance(2);
decoBoulder.setMaxY(100);
decoBoulder.setStrengthFactor(2f);
this.addDeco(decoBoulder);
DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoBaseBiomeDecorations();
decoBaseBiomeDecorations.setMaxY(100);
decoBaseBiomeDecorations.setNotEqualsZeroChance(8);
this.addDeco(decoBaseBiomeDecorations);
DecoFallenTree decoFallenMithwoodTree = new DecoFallenTree();
decoFallenMithwoodTree.getDistribution().setNoiseDivisor(100f);
decoFallenMithwoodTree.getDistribution().setNoiseFactor(6f);
decoFallenMithwoodTree.getDistribution().setNoiseAddend(0.8f);
decoFallenMithwoodTree.setLogCondition(DecoFallenTree.LogCondition.NOISE_GREATER_AND_RANDOM_CHANCE);
decoFallenMithwoodTree.setLogConditionNoise(0f);
decoFallenMithwoodTree.setLogConditionChance(24);
decoFallenMithwoodTree.setLogBlock(mithwoodLogBlock);
decoFallenMithwoodTree.setLeavesBlock(mithwoodLeavesBlock);
decoFallenMithwoodTree.setMinSize(3);
decoFallenMithwoodTree.setMaxSize(6);
this.addDeco(decoFallenMithwoodTree, this.getConfig().ALLOW_LOGS.get());
DecoFallenTree decoFallenOak = new DecoFallenTree();
decoFallenOak.setLogCondition(RANDOM_CHANCE);
decoFallenOak.setLogConditionChance(8);
decoFallenOak.setMaxY(100);
decoFallenOak.setLogBlock(Blocks.LOG.getDefaultState());
decoFallenOak.setLeavesBlock(Blocks.LEAVES.getDefaultState());
decoFallenOak.setMinSize(3);
decoFallenOak.setMaxSize(6);
this.addDeco(decoFallenOak, this.getConfig().ALLOW_LOGS.get());
DecoFallenTree decoFallenBirch = new DecoFallenTree();
decoFallenBirch.setLogCondition(RANDOM_CHANCE);
decoFallenBirch.setLogConditionChance(8);
decoFallenBirch.setMaxY(100);
decoFallenBirch.setLogBlock(BlockUtil.getStateLog(2));
decoFallenBirch.setLeavesBlock(BlockUtil.getStateLeaf(2));
decoFallenBirch.setMinSize(3);
decoFallenBirch.setMaxSize(6);
DecoFallenTree decoFallenSpruce = new DecoFallenTree();
decoFallenSpruce.setLogCondition(RANDOM_CHANCE);
decoFallenSpruce.setLogConditionChance(8);
decoFallenSpruce.setMaxY(100);
decoFallenSpruce.setLogBlock(BlockUtil.getStateLog(1));
decoFallenSpruce.setLeavesBlock(BlockUtil.getStateLeaf(1));
decoFallenSpruce.setMinSize(3);
decoFallenSpruce.setMaxSize(6);
DecoHelper5050 decoFallenTree = new DecoHelper5050(decoFallenBirch, decoFallenSpruce);
this.addDeco(decoFallenTree, this.getConfig().ALLOW_LOGS.get());
DecoGrass decoGrass = new DecoGrass();
decoGrass.setMaxY(128);
decoGrass.setStrengthFactor(24f);
this.addDeco(decoGrass);
}
Aggregations