use of rtg.api.world.gen.feature.tree.rtg.TreeRTG in project Realistic-Terrain-Generation by Team-RTG.
the class RealisticBiomeBOPLandOfLakes method initDecos.
@Override
public void initDecos() {
TreeRTG birchTree = new TreeRTGBetulaPapyrifera();
birchTree.setLogBlock(BlockUtil.getStateLog(2));
birchTree.setLeavesBlock(BlockUtil.getStateLeaf(2));
birchTree.setMinTrunkSize(4);
birchTree.setMaxTrunkSize(10);
birchTree.setMinCrownSize(8);
birchTree.setMaxCrownSize(19);
this.addTree(birchTree);
DecoTree birchTrees = new DecoTree(birchTree);
birchTrees.setStrengthFactorForLoops(9f);
birchTrees.setTreeType(DecoTree.TreeType.RTG_TREE);
birchTrees.getDistribution().setNoiseDivisor(100f);
birchTrees.getDistribution().setNoiseFactor(6f);
birchTrees.getDistribution().setNoiseAddend(0.8f);
birchTrees.setTreeCondition(DecoTree.TreeCondition.NOISE_GREATER_AND_RANDOM_CHANCE);
birchTrees.setTreeConditionChance(1);
birchTrees.setTreeConditionNoise(0f);
birchTrees.setMaxY(120);
TreeRTG sitchensisTree = new TreeRTGPiceaSitchensis();
sitchensisTree.setLogBlock(BlockUtil.getStateLog(1));
sitchensisTree.setLeavesBlock(BlockUtil.getStateLeaf(1));
sitchensisTree.setMinTrunkSize(4);
sitchensisTree.setMaxTrunkSize(9);
sitchensisTree.setMinCrownSize(5);
sitchensisTree.setMaxCrownSize(14);
this.addTree(sitchensisTree);
DecoTree smallPine = new DecoTree(sitchensisTree);
smallPine.setStrengthFactorForLoops(9f);
smallPine.setTreeType(DecoTree.TreeType.RTG_TREE);
smallPine.getDistribution().setNoiseDivisor(100f);
smallPine.getDistribution().setNoiseFactor(6f);
smallPine.getDistribution().setNoiseAddend(0.8f);
smallPine.setTreeCondition(DecoTree.TreeCondition.NOISE_GREATER_AND_RANDOM_CHANCE);
smallPine.setTreeConditionChance(1);
smallPine.setTreeConditionNoise(0f);
smallPine.setMaxY(120);
DecoHelper5050 decoHelper5050 = new DecoHelper5050(birchTrees, smallPine);
DecoFallenTree decoFallenTree = new DecoFallenTree();
decoFallenTree.getDistribution().setNoiseDivisor(100f);
decoFallenTree.getDistribution().setNoiseFactor(6f);
decoFallenTree.getDistribution().setNoiseAddend(0.8f);
decoFallenTree.setLogCondition(NOISE_GREATER_AND_RANDOM_CHANCE);
decoFallenTree.setLogConditionNoise(0f);
decoFallenTree.setLogConditionChance(12);
decoFallenTree.setRandomLogBlocks(new IBlockState[] { Blocks.LOG.getDefaultState(), BlockUtil.getStateLog(1), BlockUtil.getStateLog(2) });
decoFallenTree.setMinSize(8);
decoFallenTree.setMaxSize(12);
this.addDeco(decoFallenTree, this.getConfig().ALLOW_LOGS.get());
DecoShrub decoShrub = new DecoShrub();
decoShrub.setMaxY(110);
decoShrub.setStrengthFactor(3f);
this.addDeco(decoShrub);
DecoBoulder decoBoulder = new DecoBoulder();
decoBoulder.setBoulderBlock(Blocks.COBBLESTONE.getDefaultState());
decoBoulder.setMaxY(80);
decoBoulder.setChance(12);
decoBoulder.setStrengthFactor(1f);
this.addDeco(decoBoulder);
DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoSingleBiomeDecorations();
this.addDeco(decoBaseBiomeDecorations);
}
use of rtg.api.world.gen.feature.tree.rtg.TreeRTG in project Realistic-Terrain-Generation by Team-RTG.
the class RealisticBiomeVanillaRoofedForest method initDecos.
@Override
public void initDecos() {
DecoMushrooms decoMushrooms = new DecoMushrooms();
decoMushrooms.setChance(4);
decoMushrooms.setMaxY(90);
decoMushrooms.setRandomType(DecoMushrooms.RandomType.ALWAYS_GENERATE);
this.addDeco(decoMushrooms);
TreeRTG mucronataTree = new TreeRTGRhizophoraMucronata(3, 4, 13f, 0.32f, 0.1f);
mucronataTree.setLogBlock(BlockUtil.getStateLog2(1));
mucronataTree.setLeavesBlock(BlockUtil.getStateLeaf2(1));
mucronataTree.setMinTrunkSize(2);
mucronataTree.setMaxTrunkSize(3);
mucronataTree.setMinCrownSize(10);
mucronataTree.setMaxCrownSize(18);
mucronataTree.setNoLeaves(false);
this.addTree(mucronataTree);
DecoTree mangroveTree = new DecoTree(mucronataTree);
mangroveTree.setTreeType(DecoTree.TreeType.RTG_TREE);
mangroveTree.setTreeCondition(DecoTree.TreeCondition.RANDOM_CHANCE);
mangroveTree.setTreeConditionChance(1);
mangroveTree.setStrengthFactorForLoops(12f);
mangroveTree.setMaxY(110);
mangroveTree.setScatter(new DecoTree.Scatter(16, 0));
this.addDeco(mangroveTree);
TreeRTG pentandraTree = new TreeRTGCeibaPentandra(13f, 3, 0.32f, 0.1f);
pentandraTree.setLogBlock(BlockUtil.getStateLog2(1));
pentandraTree.setLeavesBlock(BlockUtil.getStateLeaf2(1));
pentandraTree.setMinTrunkSize(2);
pentandraTree.setMaxTrunkSize(3);
pentandraTree.setMinCrownSize(10);
pentandraTree.setMaxCrownSize(18);
pentandraTree.setNoLeaves(false);
this.addTree(pentandraTree);
DecoTree ceibaPentandraTree = new DecoTree(pentandraTree);
ceibaPentandraTree.setTreeType(DecoTree.TreeType.RTG_TREE);
ceibaPentandraTree.setTreeCondition(DecoTree.TreeCondition.RANDOM_CHANCE);
ceibaPentandraTree.setTreeConditionChance(1);
ceibaPentandraTree.setStrengthFactorForLoops(12f);
ceibaPentandraTree.setMaxY(110);
ceibaPentandraTree.setScatter(new DecoTree.Scatter(16, 0));
this.addDeco(ceibaPentandraTree);
TreeRTG roseaTree = new TreeRTGCeibaRosea(16f, 5, 0.32f, 0.1f);
roseaTree.setLogBlock(BlockUtil.getStateLog2(1));
roseaTree.setLeavesBlock(BlockUtil.getStateLeaf2(1));
roseaTree.setMinTrunkSize(2);
roseaTree.setMaxTrunkSize(3);
roseaTree.setMinCrownSize(10);
roseaTree.setMaxCrownSize(18);
roseaTree.setNoLeaves(false);
this.addTree(roseaTree);
DecoTree ceibaRoseaTree = new DecoTree(roseaTree);
ceibaRoseaTree.setTreeType(DecoTree.TreeType.RTG_TREE);
ceibaRoseaTree.setTreeCondition(DecoTree.TreeCondition.RANDOM_CHANCE);
ceibaRoseaTree.setTreeConditionChance(1);
ceibaRoseaTree.setStrengthFactorForLoops(12f);
ceibaRoseaTree.setMaxY(110);
ceibaRoseaTree.setScatter(new DecoTree.Scatter(16, 0));
this.addDeco(ceibaRoseaTree);
DecoFallenTree decoFallenTree = new DecoFallenTree();
decoFallenTree.getDistribution().setNoiseDivisor(80f);
decoFallenTree.getDistribution().setNoiseFactor(60f);
decoFallenTree.getDistribution().setNoiseAddend(-15f);
decoFallenTree.setLogCondition(NOISE_GREATER_AND_RANDOM_CHANCE);
decoFallenTree.setLogConditionChance(16);
decoFallenTree.setLogConditionNoise(0f);
decoFallenTree.setLogBlock(BlockUtil.getStateLog2(1));
decoFallenTree.setLeavesBlock(BlockUtil.getStateLeaf2(1));
decoFallenTree.setMinSize(4);
decoFallenTree.setMaxSize(9);
this.addDeco(decoFallenTree, this.getConfig().ALLOW_LOGS.get());
DecoShrub darkOakShrub = new DecoShrub();
darkOakShrub.setLogBlock(BlockUtil.getStateLog2(1));
darkOakShrub.setLeavesBlock(BlockUtil.getStateLeaf2(1));
darkOakShrub.setMaxY(100);
darkOakShrub.setStrengthFactor(8f);
DecoShrub oakShrub = new DecoShrub();
oakShrub.setLogBlock(Blocks.LOG.getDefaultState());
oakShrub.setLeavesBlock(Blocks.LEAVES.getDefaultState());
oakShrub.setMaxY(100);
oakShrub.setStrengthFactor(8f);
this.addDeco(new DecoHelperThisOrThat(4, DecoHelperThisOrThat.ChanceType.NOT_EQUALS_ZERO, darkOakShrub, oakShrub));
DecoBoulder decoBoulder = new DecoBoulder();
decoBoulder.setBoulderBlock(Blocks.MOSSY_COBBLESTONE.getDefaultState());
decoBoulder.setChance(16);
decoBoulder.setMaxY(80);
decoBoulder.setStrengthFactor(2f);
this.addDeco(decoBoulder);
DecoCobwebs decoCobwebs = new DecoCobwebs();
decoCobwebs.setChance(1);
decoCobwebs.setMinY(63);
decoCobwebs.setMaxY(76);
decoCobwebs.setStrengthFactor(24f);
decoCobwebs.setAdjacentBlock(BlockUtil.getStateLog2(1));
decoCobwebs.setMinAdjacents(2);
this.addDeco(decoCobwebs, this.getConfig().ALLOW_COBWEBS.get());
DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoBaseBiomeDecorations();
decoBaseBiomeDecorations.setNotEqualsZeroChance(2);
decoBaseBiomeDecorations.setMaxY(100);
this.addDeco(decoBaseBiomeDecorations);
DecoGrass decoGrass = new DecoGrass();
decoGrass.setMaxY(100);
decoGrass.setStrengthFactor(20f);
this.addDeco(decoGrass);
DecoDeadBush decoDeadBush = new DecoDeadBush();
decoDeadBush.setMaxY(100);
decoDeadBush.setChance(2);
decoDeadBush.setStrengthFactor(2f);
this.addDeco(decoDeadBush);
}
use of rtg.api.world.gen.feature.tree.rtg.TreeRTG in project Realistic-Terrain-Generation by Team-RTG.
the class RealisticBiomeVanillaSavannaPlateau method initDecos.
@Override
public void initDecos() {
this.addDecoCollection(new DecoCollectionDesertRiver(this.getConfig().ALLOW_CACTUS.get()));
DecoBoulder decoBoulder1 = new DecoBoulder();
decoBoulder1.setBoulderBlock(Blocks.COBBLESTONE.getDefaultState());
decoBoulder1.setMaxY(80);
decoBoulder1.setChance(24);
this.addDeco(decoBoulder1);
DecoBoulder decoBoulder2 = new DecoBoulder();
decoBoulder2.setBoulderBlock(Blocks.COBBLESTONE.getDefaultState());
decoBoulder1.setMinY(110);
decoBoulder2.setChance(24);
this.addDeco(decoBoulder2);
DecoShrub acaciaShrub = new DecoShrub();
acaciaShrub.setLogBlock(Blocks.LOG2.getDefaultState());
acaciaShrub.setLeavesBlock(Blocks.LEAVES2.getDefaultState());
acaciaShrub.setMaxY(160);
acaciaShrub.setStrengthFactor(3f);
acaciaShrub.setChance(9);
this.addDeco(acaciaShrub);
TreeRTG acaciaTree = new TreeRTGAcaciaBucheri();
acaciaTree.setLogBlock(Blocks.LOG2.getDefaultState());
acaciaTree.setLeavesBlock(Blocks.LEAVES2.getDefaultState());
acaciaTree.setMinTrunkSize(12);
acaciaTree.setMaxTrunkSize(16);
this.addTree(acaciaTree);
DecoTree acaciaTrees = new DecoTree(acaciaTree);
acaciaTrees.setStrengthFactorForLoops(2f);
acaciaTrees.setTreeType(DecoTree.TreeType.RTG_TREE);
acaciaTrees.setTreeCondition(DecoTree.TreeCondition.RANDOM_CHANCE);
acaciaTrees.setTreeConditionChance(12);
acaciaTrees.setMaxY(160);
this.addDeco(acaciaTrees);
DecoCactus decoCactus = new DecoCactus();
decoCactus.setMaxY(160);
decoCactus.setLoops(60);
decoCactus.setChance(8);
this.addDeco(decoCactus, this.getConfig().ALLOW_CACTUS.get());
DecoDoubleGrass decoDoubleGrass = new DecoDoubleGrass();
decoDoubleGrass.setMaxY(128);
decoDoubleGrass.setStrengthFactor(3f);
this.addDeco(decoDoubleGrass);
DecoGrass decoGrass = new DecoGrass();
decoGrass.setMaxY(128);
decoGrass.setStrengthFactor(10f);
this.addDeco(decoGrass);
}
use of rtg.api.world.gen.feature.tree.rtg.TreeRTG in project Realistic-Terrain-Generation by Team-RTG.
the class RealisticBiomeVanillaSavannaPlateauM method initDecos.
@Override
public void initDecos() {
this.addDecoCollection(new DecoCollectionDesertRiver(this.getConfig().ALLOW_CACTUS.get()));
DecoBoulder decoBoulder1 = new DecoBoulder();
decoBoulder1.setBoulderBlock(Blocks.COBBLESTONE.getDefaultState());
decoBoulder1.setMaxY(80);
decoBoulder1.setChance(24);
this.addDeco(decoBoulder1);
DecoBoulder decoBoulder2 = new DecoBoulder();
decoBoulder2.setBoulderBlock(Blocks.COBBLESTONE.getDefaultState());
decoBoulder1.setMinY(110);
decoBoulder2.setChance(24);
this.addDeco(decoBoulder2);
DecoShrub acaciaShrub = new DecoShrub();
acaciaShrub.setLogBlock(Blocks.LOG2.getDefaultState());
acaciaShrub.setLeavesBlock(Blocks.LEAVES2.getDefaultState());
acaciaShrub.setMaxY(160);
acaciaShrub.setStrengthFactor(3f);
acaciaShrub.setChance(9);
this.addDeco(acaciaShrub);
TreeRTG acaciaTree = new TreeRTGAcaciaBucheri();
acaciaTree.setLogBlock(Blocks.LOG2.getDefaultState());
acaciaTree.setLeavesBlock(Blocks.LEAVES2.getDefaultState());
acaciaTree.setMinTrunkSize(12);
acaciaTree.setMaxTrunkSize(16);
this.addTree(acaciaTree);
DecoTree acaciaTrees = new DecoTree(acaciaTree);
acaciaTrees.setStrengthFactorForLoops(2f);
acaciaTrees.setTreeType(DecoTree.TreeType.RTG_TREE);
acaciaTrees.setTreeCondition(DecoTree.TreeCondition.RANDOM_CHANCE);
acaciaTrees.setTreeConditionChance(12);
acaciaTrees.setMaxY(160);
this.addDeco(acaciaTrees);
DecoCactus decoCactus = new DecoCactus();
decoCactus.setMaxY(160);
decoCactus.setLoops(60);
decoCactus.setChance(8);
this.addDeco(decoCactus, this.getConfig().ALLOW_CACTUS.get());
DecoDoubleGrass decoDoubleGrass = new DecoDoubleGrass();
decoDoubleGrass.setMaxY(128);
decoDoubleGrass.setStrengthFactor(3f);
this.addDeco(decoDoubleGrass);
DecoGrass decoGrass = new DecoGrass();
decoGrass.setMaxY(128);
decoGrass.setStrengthFactor(10f);
this.addDeco(decoGrass);
}
use of rtg.api.world.gen.feature.tree.rtg.TreeRTG 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);
}
Aggregations