Search in sources :

Example 6 with TreeRTGRhizophoraMucronata

use of rtg.api.world.gen.feature.tree.rtg.TreeRTGRhizophoraMucronata in project Realistic-Terrain-Generation by Team-RTG.

the class RealisticBiomeVanillaRoofedForestM method initDecos.

@Override
public void initDecos() {
    DecoBoulder decoBoulder = new DecoBoulder();
    decoBoulder.setBoulderBlock(Blocks.MOSSY_COBBLESTONE.getDefaultState());
    decoBoulder.setChance(20);
    decoBoulder.setMaxY(80);
    decoBoulder.setStrengthFactor(2f);
    this.addDeco(decoBoulder);
    TreeRTG mucronataTree = new TreeRTGRhizophoraMucronata(3, 4, 13f, 0.32f, 0.1f);
    mucronataTree.setLogBlock(BlockUtil.getStateLog2(1));
    mucronataTree.setLeavesBlock(BlockUtil.getStateLeaf2(1));
    mucronataTree.setMinTrunkSize(3);
    mucronataTree.setMaxTrunkSize(4);
    mucronataTree.setMinCrownSize(7);
    mucronataTree.setMaxCrownSize(12);
    this.addTree(mucronataTree);
    DecoTree decoTrees = new DecoTree(mucronataTree);
    decoTrees.setStrengthFactorForLoops(24f);
    decoTrees.getDistribution().setNoiseDivisor(80f);
    decoTrees.getDistribution().setNoiseFactor(60f);
    decoTrees.getDistribution().setNoiseAddend(-15f);
    decoTrees.setTreeType(DecoTree.TreeType.RTG_TREE);
    decoTrees.setTreeCondition(DecoTree.TreeCondition.NOISE_GREATER_AND_RANDOM_CHANCE);
    decoTrees.setTreeConditionNoise(0f);
    decoTrees.setTreeConditionChance(1);
    decoTrees.setMaxY(120);
    this.addDeco(decoTrees);
    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 decoShrub = new DecoShrub();
    decoShrub.setMaxY(110);
    decoShrub.setStrengthFactor(1f);
    this.addDeco(decoShrub);
    DecoGrassDoubleTallgrass decoGrassDoubleTallgrass = new DecoGrassDoubleTallgrass();
    decoGrassDoubleTallgrass.setMaxY(128);
    decoGrassDoubleTallgrass.setStrengthFactor(8f);
    decoGrassDoubleTallgrass.setDoubleGrassChance(6);
    this.addDeco(decoGrassDoubleTallgrass);
    DecoDeadBush decoDeadBush = new DecoDeadBush();
    decoDeadBush.setMaxY(128);
    decoDeadBush.setChance(16);
    decoDeadBush.setStrengthFactor(1f);
    this.addDeco(decoDeadBush);
    DecoGrass decoGrass = new DecoGrass();
    decoGrass.setMaxY(128);
    decoGrass.setStrengthFactor(4f);
    decoGrass.setChance(2);
    this.addDeco(decoGrass);
    DecoGrass decoFern = new DecoGrass(2);
    decoFern.setMaxY(128);
    decoFern.setStrengthFactor(4f);
    decoFern.setChance(2);
    this.addDeco(decoFern);
    DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoBaseBiomeDecorations();
    this.addDeco(decoBaseBiomeDecorations);
    DecoMushrooms decoMushrooms = new DecoMushrooms();
    decoMushrooms.setMaxY(90);
    decoMushrooms.setRandomType(DecoMushrooms.RandomType.ALWAYS_GENERATE);
    this.addDeco(decoMushrooms);
}
Also used : TreeRTG(rtg.api.world.gen.feature.tree.rtg.TreeRTG) TreeRTGRhizophoraMucronata(rtg.api.world.gen.feature.tree.rtg.TreeRTGRhizophoraMucronata)

Aggregations

TreeRTG (rtg.api.world.gen.feature.tree.rtg.TreeRTG)6 TreeRTGRhizophoraMucronata (rtg.api.world.gen.feature.tree.rtg.TreeRTGRhizophoraMucronata)6 DecoHelperThisOrThat (rtg.api.world.deco.helper.DecoHelperThisOrThat)4 WorldGenMegaJungle (net.minecraft.world.gen.feature.WorldGenMegaJungle)3 TreeRTGCocosNucifera (rtg.api.world.gen.feature.tree.rtg.TreeRTGCocosNucifera)3 TreeRTGCeibaPentandra (rtg.api.world.gen.feature.tree.rtg.TreeRTGCeibaPentandra)1 TreeRTGCeibaRosea (rtg.api.world.gen.feature.tree.rtg.TreeRTGCeibaRosea)1