Search in sources :

Example 1 with WorldGenInfectedVinesDirt

use of stevekung.mods.moreplanets.module.planets.nibiru.world.gen.feature.WorldGenInfectedVinesDirt in project MorePlanets by SteveKunG.

the class BiomeInfectedDeadRoofedForest method decorate.

@Override
public void decorate(World world, Random rand, BlockPos pos) {
    for (int i = 0; i < 4; ++i) {
        for (int j = 0; j < 4; ++j) {
            int k = i * 4 + 1 + 8 + rand.nextInt(3);
            int l = j * 4 + 1 + 8 + rand.nextInt(3);
            BlockPos blockpos = world.getHeight(pos.add(k, 0, l));
            WorldGenAbstractTree worldgenabstracttree = this.getRandomTreeFeature(rand);
            if (worldgenabstracttree.generate(world, rand, blockpos)) {
                worldgenabstracttree.generateSaplings(world, rand, blockpos);
            }
        }
    }
    if (rand.nextInt(25) == 0) {
        new WorldGenInfectedVinesDirt().generate(world, rand, DecorateHelper.getSimplePos(world, pos, rand));
    }
    super.decorate(world, rand, pos);
}
Also used : WorldGenInfectedVinesDirt(stevekung.mods.moreplanets.module.planets.nibiru.world.gen.feature.WorldGenInfectedVinesDirt) WorldGenAbstractTree(net.minecraft.world.gen.feature.WorldGenAbstractTree) BlockPos(net.minecraft.util.math.BlockPos)

Example 2 with WorldGenInfectedVinesDirt

use of stevekung.mods.moreplanets.module.planets.nibiru.world.gen.feature.WorldGenInfectedVinesDirt in project MorePlanets by SteveKunG.

the class BiomeInfectedDeadSavanna method decorate.

@Override
public void decorate(World world, Random rand, BlockPos pos) {
    double d0 = GRASS_COLOR_NOISE.getValue((pos.getX() + 8) / 200.0D, (pos.getZ() + 8) / 200.0D);
    if (d0 > -0.8D) {
        for (int i = 0; i < 12; ++i) {
            BlockPos newpos = DecorateHelper.getSimplePos(world, pos, rand);
            if (world.getBlockState(newpos).getBlock() == NibiruBlocks.INFECTED_GRASS) {
                new WorldGenInfectedVinesDirt().generate(world, rand, newpos);
            }
        }
    }
    for (int i = 0; i < 7; ++i) {
        int x = rand.nextInt(16) + 8;
        int z = rand.nextInt(16) + 8;
        int y = rand.nextInt(world.getHeight(pos.add(x, 0, z)).getY() + 32);
        new WorldGenNibiruDoublePlant(BlockNibiruDoublePlant.BlockType.DOUBLE_INFECTED_GRASS).generate(world, rand, pos.add(x, y, z));
    }
    super.decorate(world, rand, pos);
}
Also used : WorldGenInfectedVinesDirt(stevekung.mods.moreplanets.module.planets.nibiru.world.gen.feature.WorldGenInfectedVinesDirt) BlockPos(net.minecraft.util.math.BlockPos) WorldGenNibiruDoublePlant(stevekung.mods.moreplanets.module.planets.nibiru.world.gen.feature.WorldGenNibiruDoublePlant)

Example 3 with WorldGenInfectedVinesDirt

use of stevekung.mods.moreplanets.module.planets.nibiru.world.gen.feature.WorldGenInfectedVinesDirt in project MorePlanets by SteveKunG.

the class BiomeInfectedDeadTaiga method decorate.

@Override
public void decorate(World world, Random rand, BlockPos pos) {
    if (rand.nextInt(25) == 0) {
        new WorldGenInfectedVinesDirt().generate(world, rand, DecorateHelper.getSimplePos(world, pos, rand));
    }
    for (int i = 0; i < 7; ++i) {
        int x = rand.nextInt(16) + 8;
        int z = rand.nextInt(16) + 8;
        int y = rand.nextInt(world.getHeight(pos.add(x, 0, z)).getY() + 32);
        new WorldGenNibiruDoublePlant(BlockNibiruDoublePlant.BlockType.DOUBLE_INFECTED_FERN).generate(world, rand, pos.add(x, y, z));
    }
    super.decorate(world, rand, pos);
}
Also used : WorldGenInfectedVinesDirt(stevekung.mods.moreplanets.module.planets.nibiru.world.gen.feature.WorldGenInfectedVinesDirt) WorldGenNibiruDoublePlant(stevekung.mods.moreplanets.module.planets.nibiru.world.gen.feature.WorldGenNibiruDoublePlant)

Aggregations

WorldGenInfectedVinesDirt (stevekung.mods.moreplanets.module.planets.nibiru.world.gen.feature.WorldGenInfectedVinesDirt)3 BlockPos (net.minecraft.util.math.BlockPos)2 WorldGenNibiruDoublePlant (stevekung.mods.moreplanets.module.planets.nibiru.world.gen.feature.WorldGenNibiruDoublePlant)2 WorldGenAbstractTree (net.minecraft.world.gen.feature.WorldGenAbstractTree)1