Search in sources :

Example 1 with WorldGenNibiruDoublePlant

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

the class BiomeGreenVein 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 < 7; ++i) {
            int j = rand.nextInt(16) + 8;
            int k = rand.nextInt(16) + 8;
            int l = rand.nextInt(world.getHeight(pos.add(j, 0, k)).getY() + 32);
            new WorldGenNibiruDoublePlant(BlockNibiruDoublePlant.BlockType.DOUBLE_GREEN_VEIN_GRASS).generate(world, rand, pos.add(j, l, k));
        }
    }
    if (rand.nextInt(15) == 0) {
        int x = rand.nextInt(16) + 8;
        int z = rand.nextInt(16) + 8;
        new WorldGenTerrashroom().generate(world, rand, world.getHeight(pos.add(x, 0, z)));
    }
    if (rand.nextInt(4) == 0) {
        int x = rand.nextInt(16) + 8;
        int z = rand.nextInt(16) + 8;
        BlockPos blockpos2 = world.getHeight(pos.add(x, 0, z));
        new WorldGenFlowersMP(NibiruBlocks.NIBIRU_FLOWER.getDefaultState().withProperty(BlockNibiruFlower.VARIANT, BlockNibiruFlower.BlockType.TERRASHROOM)).generate(world, rand, blockpos2);
    }
    super.decorate(world, rand, pos);
}
Also used : WorldGenTerrashroom(stevekung.mods.moreplanets.module.planets.nibiru.world.gen.feature.WorldGenTerrashroom) WorldGenFlowersMP(stevekung.mods.moreplanets.util.world.gen.feature.WorldGenFlowersMP) WorldGenNibiruDoublePlant(stevekung.mods.moreplanets.module.planets.nibiru.world.gen.feature.WorldGenNibiruDoublePlant) BlockPos(net.minecraft.util.math.BlockPos)

Example 2 with WorldGenNibiruDoublePlant

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

the class BiomeInfectedPlains 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) {
        this.getBiomeDecorator().infectedTallGrassPerChunk = 86;
    } else {
        this.getBiomeDecorator().infectedTallGrassPerChunk = 128;
        for (int i = 0; i < 7; ++i) {
            new WorldGenNibiruDoublePlant(BlockNibiruDoublePlant.BlockType.DOUBLE_INFECTED_GRASS).generate(world, rand, DecorateHelper.getSimplePos(world, pos, rand));
        }
    }
    super.decorate(world, rand, pos);
}
Also used : WorldGenNibiruDoublePlant(stevekung.mods.moreplanets.module.planets.nibiru.world.gen.feature.WorldGenNibiruDoublePlant)

Example 3 with WorldGenNibiruDoublePlant

use of stevekung.mods.moreplanets.module.planets.nibiru.world.gen.feature.WorldGenNibiruDoublePlant 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 4 with WorldGenNibiruDoublePlant

use of stevekung.mods.moreplanets.module.planets.nibiru.world.gen.feature.WorldGenNibiruDoublePlant 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

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