use of rtg.api.world.gen.feature.tree.rtg.TreeRTG 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);
}
use of rtg.api.world.gen.feature.tree.rtg.TreeRTG in project Realistic-Terrain-Generation by Team-RTG.
the class RealisticBiomeBYGWillowSwamps method initDecos.
@Override
public void initDecos() {
DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoBaseBiomeDecorations();
decoBaseBiomeDecorations.setMaxY(82);
this.addDeco(decoBaseBiomeDecorations);
TreeRTG myrtilloidesTree = new TreeRTGSalixMyrtilloides();
myrtilloidesTree.setLogBlock(Blocks.LOG.getDefaultState());
myrtilloidesTree.setLeavesBlock(Blocks.LEAVES.getDefaultState());
this.addTree(myrtilloidesTree);
DecoTree decoTrees = new DecoTree(myrtilloidesTree);
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(16);
decoTrees.setMaxY(70);
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.setLogConditionNoise(0f);
decoFallenTree.setLogConditionChance(6);
decoFallenTree.setLogBlock(BlockUtil.getStateLog2(1));
decoFallenTree.setLeavesBlock(BlockUtil.getStateLeaf2(1));
decoFallenTree.setMinSize(3);
decoFallenTree.setMaxSize(6);
decoFallenTree.setMaxY(76);
this.addDeco(decoFallenTree, this.getConfig().ALLOW_LOGS.get());
TreeRTG deadWillowTree = new TreeRTGSalixMyrtilloides();
deadWillowTree.setLogBlock(Blocks.LOG.getDefaultState());
deadWillowTree.setLeavesBlock(Blocks.LEAVES.getDefaultState());
deadWillowTree.setNoLeaves(true);
this.addTree(deadWillowTree);
DecoTree deadWillow = new DecoTree(deadWillowTree);
deadWillow.setTreeType(DecoTree.TreeType.RTG_TREE);
deadWillow.setTreeCondition(DecoTree.TreeCondition.RANDOM_CHANCE);
deadWillow.setTreeConditionChance(18);
deadWillow.setMaxY(84);
this.addDeco(deadWillow);
DecoShrub decoShrub = new DecoShrub();
decoShrub.setMaxY(88);
decoShrub.setStrengthFactor(6f);
this.addDeco(decoShrub);
DecoShrub decoShrubBYG = new DecoShrub();
decoShrubBYG.setLogBlock(willowLogBlock);
decoShrubBYG.setLeavesBlock(willowLeavesBlock);
decoShrubBYG.setMaxY(88);
decoShrubBYG.setStrengthFactor(3f);
this.addDeco(decoShrubBYG);
}
use of rtg.api.world.gen.feature.tree.rtg.TreeRTG in project Realistic-Terrain-Generation by Team-RTG.
the class RealisticBiomeBYGAutumnForest method initDecos.
@Override
public void initDecos() {
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(24);
decoFallenTree.setLogBlock(Blocks.LOG.getDefaultState());
decoFallenTree.setLeavesBlock(Blocks.LEAVES.getDefaultState());
decoFallenTree.setMinSize(3);
decoFallenTree.setMaxSize(6);
this.addDeco(decoFallenTree, this.getConfig().ALLOW_LOGS.get());
DecoShrub decoShrubCika = new DecoShrub();
decoShrubCika.setLogBlock(cikaLogBlock);
decoShrubCika.setLeavesBlock(cikaLeavesBlock);
decoShrubCika.setMaxY(90);
decoShrubCika.setStrengthFactor(4f);
decoShrubCika.setChance(8);
this.addDeco(decoShrubCika);
DecoShrub decoShrubOak = new DecoShrub();
decoShrubOak.setMaxY(90);
decoShrubOak.setStrengthFactor(4f);
decoShrubOak.setChance(4);
this.addDeco(decoShrubOak);
DecoBoulder decoBoulder = new DecoBoulder();
decoBoulder.setBoulderBlock(Blocks.COBBLESTONE.getDefaultState());
decoBoulder.setChance(24);
decoBoulder.setMaxY(80);
decoBoulder.setStrengthFactor(2f);
this.addDeco(decoBoulder);
TreeRTG quercusRoburOakTree = new TreeRTGQuercusRobur();
quercusRoburOakTree.setLogBlock(Blocks.LOG.getDefaultState());
quercusRoburOakTree.setLeavesBlock(Blocks.LEAVES.getDefaultState());
quercusRoburOakTree.setMinTrunkSize(3);
quercusRoburOakTree.setMaxTrunkSize(6);
quercusRoburOakTree.setMinCrownSize(5);
quercusRoburOakTree.setMaxCrownSize(9);
quercusRoburOakTree.getValidGroundBlocks().clear();
quercusRoburOakTree.getValidGroundBlocks().add(BlockUtil.getStateDirt(2));
this.addTree(quercusRoburOakTree);
DecoTree bigOakTrees = new DecoTree(quercusRoburOakTree);
bigOakTrees.setStrengthFactorForLoops(2f);
bigOakTrees.setTreeType(DecoTree.TreeType.RTG_TREE);
bigOakTrees.getDistribution().setNoiseDivisor(100f);
bigOakTrees.getDistribution().setNoiseFactor(6f);
bigOakTrees.getDistribution().setNoiseAddend(0.8f);
bigOakTrees.setTreeCondition(DecoTree.TreeCondition.NOISE_GREATER_AND_RANDOM_CHANCE);
bigOakTrees.setTreeConditionNoise(0f);
bigOakTrees.setTreeConditionChance(6);
bigOakTrees.setMaxY(105);
this.addDeco(bigOakTrees);
DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoBaseBiomeDecorations();
decoBaseBiomeDecorations.setMaxY(105);
decoBaseBiomeDecorations.setNotEqualsZeroChance(8);
this.addDeco(decoBaseBiomeDecorations);
// Grass filler.
DecoGrass decoGrass = new DecoGrass();
decoGrass.setMinY(63);
decoGrass.setMaxY(105);
decoGrass.setLoops(1);
this.addDeco(decoGrass);
}
use of rtg.api.world.gen.feature.tree.rtg.TreeRTG in project Realistic-Terrain-Generation by Team-RTG.
the class RealisticBiomeVanillaPlains method initDecos.
@Override
public void initDecos() {
//Sparse wheat
DecoCrop decoCropWheat = new DecoCrop();
decoCropWheat.setSize(8);
decoCropWheat.setDensity(5);
decoCropWheat.setChance(this.getConfig().WHEAT_CHANCE.get());
decoCropWheat.setType(3);
decoCropWheat.setWater(false);
decoCropWheat.setMinY(this.getConfig().WHEAT_MIN_Y.get());
decoCropWheat.setMaxY(this.getConfig().WHEAT_MAX_Y.get());
this.addDeco(decoCropWheat, this.getConfig().ALLOW_WHEAT.get());
// Very sparse shrubs.
DecoShrub decoShrubOak = new DecoShrub();
decoShrubOak.setLogBlock(Blocks.LOG.getDefaultState());
decoShrubOak.setLeavesBlock(Blocks.LEAVES.getDefaultState());
decoShrubOak.setMaxY(110);
decoShrubOak.setLoops(1);
decoShrubOak.setChance(36);
this.addDeco(decoShrubOak);
// The occasional flower.
DecoFlowersRTG decoFlowersRTG = new DecoFlowersRTG();
decoFlowersRTG.setFlowers(new int[] { 0, 2, 3, 4, 5, 6, 7, 8, 9 });
decoFlowersRTG.setMaxY(128);
decoFlowersRTG.setStrengthFactor(2f);
this.addDeco(decoFlowersRTG);
// Lots of grass, but not as much as vanilla.
DecoGrass decoGrass = new DecoGrass();
decoGrass.setMinY(60);
decoGrass.setMaxY(128);
decoGrass.setLoops(6);
this.addDeco(decoGrass);
// Very rare fat oak/birch trees.
TreeRTG roburTree1 = new TreeRTGQuercusRobur();
roburTree1.setLogBlock(Blocks.LOG.getDefaultState());
roburTree1.setLeavesBlock(Blocks.LEAVES.getDefaultState());
roburTree1.setMinTrunkSize(3);
roburTree1.setMaxTrunkSize(5);
roburTree1.setMinCrownSize(7);
roburTree1.setMaxCrownSize(9);
this.addTree(roburTree1);
DecoTree oakTrees = new DecoTree(roburTree1);
oakTrees.setTreeType(DecoTree.TreeType.RTG_TREE);
oakTrees.setTreeCondition(DecoTree.TreeCondition.NOISE_GREATER_AND_RANDOM_CHANCE);
oakTrees.setDistribution(new DecoTree.Distribution(100f, 6f, 0.8f));
oakTrees.setTreeConditionNoise(0.4f);
oakTrees.setTreeConditionChance(48);
TreeRTG roburTree2 = new TreeRTGQuercusRobur();
roburTree2.setLogBlock(BlockUtil.getStateLog(2));
roburTree2.setLeavesBlock(BlockUtil.getStateLeaf(2));
roburTree2.setMinTrunkSize(3);
roburTree2.setMaxTrunkSize(5);
roburTree2.setMinCrownSize(7);
roburTree2.setMaxCrownSize(9);
this.addTree(roburTree2);
DecoTree birchTrees = new DecoTree(roburTree2);
birchTrees.setTreeType(DecoTree.TreeType.RTG_TREE);
birchTrees.setTreeCondition(DecoTree.TreeCondition.NOISE_GREATER_AND_RANDOM_CHANCE);
birchTrees.setDistribution(new DecoTree.Distribution(100f, 6f, 0.8f));
birchTrees.setTreeConditionNoise(0.4f);
birchTrees.setTreeConditionChance(48);
this.addDeco(new DecoHelperThisOrThat(4, DecoHelperThisOrThat.ChanceType.NOT_EQUALS_ZERO, oakTrees, birchTrees));
// Vanilla trees look awful in this biome, so let's make sure they don't generate.
//DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoBaseBiomeDecorations();
//this.addDeco(decoBaseBiomeDecorations);
}
use of rtg.api.world.gen.feature.tree.rtg.TreeRTG in project Realistic-Terrain-Generation by Team-RTG.
the class RealisticBiomeVanillaSwampland 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(70);
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(90);
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(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(100);
decoGrass.setStrengthFactor(12f);
this.addDeco(decoGrass);
}
Aggregations