Search in sources :

Example 31 with TreeRTG

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

the class DecoCollectionForest method shortPineTrees.

private DecoTree shortPineTrees(IBlockState log, IBlockState leaves, float noiseMin, float noiseMax) {
    TreeRTG piceaSitchensis = new TreeRTGPiceaSitchensis().setLogBlock(log).setLeavesBlock(leaves).setMinTrunkSize(4).setMaxTrunkSize(10).setMinCrownSize(6).setMaxCrownSize(14);
    this.addTree(piceaSitchensis);
    return new DecoTree(piceaSitchensis).setStrengthFactorForLoops(6f).setTreeType(TreeType.RTG_TREE).setDistribution(forestDistribution).setTreeCondition(TreeCondition.NOISE_BETWEEN_AND_RANDOM_CHANCE).setTreeConditionNoise(noiseMin).setTreeConditionNoise2(noiseMax).setTreeConditionChance(1).setMaxY(85);
}
Also used : TreeRTG(rtg.api.world.gen.feature.tree.rtg.TreeRTG) TreeRTGPiceaSitchensis(rtg.api.world.gen.feature.tree.rtg.TreeRTGPiceaSitchensis)

Example 32 with TreeRTG

use of rtg.api.world.gen.feature.tree.rtg.TreeRTG 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)32 DecoTree (rtg.api.world.deco.DecoTree)9 TreeRTGPinusNigra (rtg.api.world.gen.feature.tree.rtg.TreeRTGPinusNigra)6 TreeRTGPinusPonderosa (rtg.api.world.gen.feature.tree.rtg.TreeRTGPinusPonderosa)6 TreeRTGRhizophoraMucronata (rtg.api.world.gen.feature.tree.rtg.TreeRTGRhizophoraMucronata)6 DecoHelperThisOrThat (rtg.api.world.deco.helper.DecoHelperThisOrThat)5 TreeRTGBetulaPapyrifera (rtg.api.world.gen.feature.tree.rtg.TreeRTGBetulaPapyrifera)4 TreeRTGCocosNucifera (rtg.api.world.gen.feature.tree.rtg.TreeRTGCocosNucifera)4 IBlockState (net.minecraft.block.state.IBlockState)3 WorldGenMegaJungle (net.minecraft.world.gen.feature.WorldGenMegaJungle)3 DecoHelper5050 (rtg.api.world.deco.helper.DecoHelper5050)3 TreeRTGPiceaSitchensis (rtg.api.world.gen.feature.tree.rtg.TreeRTGPiceaSitchensis)3 TreeRTGSalixMyrtilloides (rtg.api.world.gen.feature.tree.rtg.TreeRTGSalixMyrtilloides)3 DecoCollectionDesertRiver (rtg.api.world.deco.collection.DecoCollectionDesertRiver)2 TreeRTGAcaciaBucheri (rtg.api.world.gen.feature.tree.rtg.TreeRTGAcaciaBucheri)2 TreeRTGCeibaPentandra (rtg.api.world.gen.feature.tree.rtg.TreeRTGCeibaPentandra)2 TreeRTGCeibaRosea (rtg.api.world.gen.feature.tree.rtg.TreeRTGCeibaRosea)2 TreeRTGPiceaPungens (rtg.api.world.gen.feature.tree.rtg.TreeRTGPiceaPungens)2 TreeRTGQuercusRobur (rtg.api.world.gen.feature.tree.rtg.TreeRTGQuercusRobur)2 DecoBaseBiomeDecorations (rtg.api.world.deco.DecoBaseBiomeDecorations)1