Search in sources :

Example 1 with TreeRTGAcaciaBucheri

use of rtg.api.world.gen.feature.tree.rtg.TreeRTGAcaciaBucheri 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);
}
Also used : DecoCollectionDesertRiver(rtg.api.world.deco.collection.DecoCollectionDesertRiver) TreeRTG(rtg.api.world.gen.feature.tree.rtg.TreeRTG) TreeRTGAcaciaBucheri(rtg.api.world.gen.feature.tree.rtg.TreeRTGAcaciaBucheri)

Example 2 with TreeRTGAcaciaBucheri

use of rtg.api.world.gen.feature.tree.rtg.TreeRTGAcaciaBucheri 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);
}
Also used : DecoCollectionDesertRiver(rtg.api.world.deco.collection.DecoCollectionDesertRiver) TreeRTG(rtg.api.world.gen.feature.tree.rtg.TreeRTG) TreeRTGAcaciaBucheri(rtg.api.world.gen.feature.tree.rtg.TreeRTGAcaciaBucheri)

Aggregations

DecoCollectionDesertRiver (rtg.api.world.deco.collection.DecoCollectionDesertRiver)2 TreeRTG (rtg.api.world.gen.feature.tree.rtg.TreeRTG)2 TreeRTGAcaciaBucheri (rtg.api.world.gen.feature.tree.rtg.TreeRTGAcaciaBucheri)2